Generated on Mon Aug 25 11:35:48 2008 for Gecode by doxygen 1.5.6

Alpha Class Reference
[Scripts for problems]

Inherits Example.

List of all members.


Detailed Description

Example: Alpha puzzle

Well-known cryptoarithmetic puzzle of unknown origin.

Definition at line 49 of file alpha.cc.


Public Types

enum  { BRANCH_NONE, BRANCH_SIZE }
 Branching to use for model. More...

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 (std::ostream &os)
 Print solution.

Protected Attributes

IntVarArray le
 Array for letters.

Static Protected Attributes

static const int n = 26
 Alphabet has 26 letters.

Member Enumeration Documentation

anonymous enum

Branching to use for model.

Enumerator:
BRANCH_NONE  Choose variable left to right.
BRANCH_SIZE  Choose variable with smallest size.

Definition at line 57 of file alpha.cc.


Constructor & Destructor Documentation

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

Actual model.

Definition at line 62 of file alpha.cc.

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

Constructor for cloning s.

Definition at line 99 of file alpha.cc.


Member Function Documentation

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

Copy during cloning.

Implements Gecode::Space.

Definition at line 104 of file alpha.cc.

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

Print solution.

Reimplemented from Example.

Definition at line 109 of file alpha.cc.


Member Data Documentation

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

Alphabet has 26 letters.

Definition at line 52 of file alpha.cc.

IntVarArray Alpha::le [protected]

Array for letters.

Definition at line 54 of file alpha.cc.


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