Generated on Thu Jul 6 07:06:58 2006 for Gecode by doxygen 1.4.7

Alpha Class Reference
[Example scripts (models)]

Inherits Example.

List of all members.


Detailed Description

Example: Alpha puzzle

Well-known cryptoarithmetic puzzle of unknown origin.

Definition at line 33 of file alpha.cc.

Public Member Functions

 Alpha (const Options &opt)
 Actual model.
 Alpha (bool share, Alpha &s)
 Constructor for cloning s.
virtual Spacecopy (bool share)
 Copy during cloning.
virtual void print (void)
 Print solution.

Protected Attributes

IntVarArray le
 Array for letters.

Static Protected Attributes

static const int n = 26
 Alphabet has 26 letters.

Related Functions

(Note that these are not member functions.)

int main (int argc, char **argv)
 Main-function.


Constructor & Destructor Documentation

Alpha::Alpha ( const Options opt  )  [inline]

Actual model.

Definition at line 41 of file alpha.cc.

Alpha::Alpha ( bool  share,
Alpha s 
) [inline]

Constructor for cloning s.

Definition at line 76 of file alpha.cc.


Member Function Documentation

virtual Space* Alpha::copy ( bool  share  )  [inline, virtual]

Copy during cloning.

Implements Gecode::Space.

Definition at line 81 of file alpha.cc.

virtual void Alpha::print ( void   )  [inline, virtual]

Print solution.

Reimplemented from Example.

Definition at line 86 of file alpha.cc.


Friends And Related Function Documentation

int main ( int  argc,
char **  argv 
) [related]

Main-function.

Definition at line 101 of file alpha.cc.


Member Data Documentation

const int Alpha::n = 26 [static, protected]

Alphabet has 26 letters.

Definition at line 36 of file alpha.cc.

IntVarArray Alpha::le [protected]

Array for letters.

Definition at line 38 of file alpha.cc.


The documentation for this class was generated from the following files: