Generated on Thu Mar 22 10:39:51 2012 for Gecode by doxygen 1.6.3

Donald Class Reference
[Example scripts (models)]

Example: DONALD+GERALD=ROBERT puzzle More...

List of all members.

Public Types

enum  { MODEL_SINGLE, MODEL_CARRY }
 

Model variants.

More...

Public Member Functions

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

Detailed Description

Example: DONALD+GERALD=ROBERT puzzle

Well-known cryptoarithmetic puzzle of unknown origin.

Definition at line 52 of file donald.cpp.


Member Enumeration Documentation

anonymous enum

Model variants.

Enumerator:
MODEL_SINGLE 

Use single linear equation.

MODEL_CARRY 

Use carries.

Definition at line 60 of file donald.cpp.


Constructor & Destructor Documentation

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

Actual model.

Definition at line 65 of file donald.cpp.

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

Constructor for cloning s.

Definition at line 101 of file donald.cpp.


Member Function Documentation

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

Copy during cloning.

Definition at line 106 of file donald.cpp.

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

Print solution.

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

Definition at line 111 of file donald.cpp.


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