Generated on Fri Oct 19 11:25:41 2018 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 (Donald &s)
 Constructor for cloning s.
virtual Spacecopy (void)
 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 48 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 56 of file donald.cpp.


Constructor & Destructor Documentation

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

Actual model.

Definition at line 61 of file donald.cpp.

Donald::Donald ( Donald s  )  [inline]

Constructor for cloning s.

Definition at line 97 of file donald.cpp.


Member Function Documentation

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

Copy during cloning.

Definition at line 102 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 107 of file donald.cpp.


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