Generated on Tue Feb 11 2025 17:33:26 for Gecode by doxygen 1.12.0

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

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.
 
- Public Member Functions inherited from Gecode::Driver::ScriptBase< BaseSpace >
 ScriptBase (const Options &opt)
 Constructor.
 
 ScriptBase (ScriptBase &e)
 Constructor used for cloning.
 
virtual void compare (const Space &home, std::ostream &os) const
 Compare with s.
 

Related Symbols

(Note that these are not member symbols.)

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

Additional Inherited Members

- Static Public Member Functions inherited from Gecode::Driver::ScriptBase< BaseSpace >
static std::ostream & select_ostream (const char *sn, std::ofstream &ofs)
 Choose output stream according to sn.
 
template<class Script , template< class > class Engine, class Options >
static void run (const Options &opt, Script *s=NULL)
 

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

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() [1/2]

Donald::Donald ( const Options & opt)
inline

Actual model.

Definition at line 61 of file donald.cpp.

◆ Donald() [2/2]

Donald::Donald ( Donald & s)
inline

Constructor for cloning s.

Definition at line 97 of file donald.cpp.

Member Function Documentation

◆ copy()

virtual Space * Donald::copy ( void )
inlinevirtual

Copy during cloning.

Definition at line 102 of file donald.cpp.

◆ print()

virtual void Donald::print ( std::ostream & os) const
inlinevirtual

Print solution.

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

Definition at line 107 of file donald.cpp.

Friends And Related Symbol Documentation

◆ main()

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

Main-function.

Definition at line 118 of file donald.cpp.


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