Generated on Fri Oct 19 11:25:40 2018 for Gecode by doxygen 1.6.3

Alpha Class Reference
[Example scripts (models)]

Example: Alpha puzzle More...

List of all members.

Public Types

enum  { BRANCH_NONE, BRANCH_INVERSE, BRANCH_SIZE }
 

Branching to use for model.

More...

Public Member Functions

 Alpha (const Options &opt)
 Actual model.
 Alpha (Alpha &s)
 Constructor for cloning s.
virtual Spacecopy (void)
 Copy during cloning.
virtual void print (std::ostream &os) const
 Print solution.

Protected Attributes

IntVarArray le
 Array for letters.

Static Protected Attributes

static const int n = 26
 Alphabet has 26 letters.

Detailed Description

Example: Alpha puzzle

Well-known cryptoarithmetic puzzle of unknown origin.

Definition at line 49 of file alpha.cpp.


Member Enumeration Documentation

anonymous enum

Branching to use for model.

Enumerator:
BRANCH_NONE 

Choose variable left to right.

BRANCH_INVERSE 

Choose variable right to left.

BRANCH_SIZE 

Choose variable with smallest size.

Definition at line 57 of file alpha.cpp.


Constructor & Destructor Documentation

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

Actual model.

Definition at line 63 of file alpha.cpp.

Alpha::Alpha ( Alpha s  )  [inline]

Constructor for cloning s.

Definition at line 109 of file alpha.cpp.


Member Function Documentation

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

Copy during cloning.

Definition at line 114 of file alpha.cpp.

virtual void Alpha::print ( std::ostream &  os  )  const [inline, virtual]

Print solution.

Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.

Definition at line 119 of file alpha.cpp.


Member Data Documentation

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

Alphabet has 26 letters.

Definition at line 52 of file alpha.cpp.

IntVarArray Alpha::le [protected]

Array for letters.

Definition at line 54 of file alpha.cpp.


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