
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 Space * | copy (void) |
| Copy during cloning. | |
| virtual void | print (std::ostream &os) const |
| Print solution. | |
| Public Member Functions inherited from Gecode::Driver::ScriptBase< Driver::IgnoreStepOption< Space > > | |
| 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. | |
| Public Member Functions inherited from Gecode::Driver::IgnoreStepOption< BaseSpace > | |
| IgnoreStepOption (const Options &) | |
| Constructor. | |
| IgnoreStepOption (BaseSpace &e) | |
| Constructor used for cloning. | |
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< Driver::IgnoreStepOption< Space > > | |
| static std::ostream & | select_ostream (const char *sn, std::ofstream &ofs) |
| Choose output stream according to sn. | |
| static void | run (const Options &opt, Script *s=NULL) |
Example: DONALD+GERALD=ROBERT puzzle
Well-known cryptoarithmetic puzzle of unknown origin.
Definition at line 48 of file donald.cpp.
| anonymous enum |
Model variants.
| Enumerator | |
|---|---|
| MODEL_SINGLE | Use single linear equation. |
| MODEL_CARRY | Use carries. |
Definition at line 56 of file donald.cpp.
|
inline |
Actual model.
Definition at line 61 of file donald.cpp.
|
inline |
Constructor for cloning s.
Definition at line 97 of file donald.cpp.
|
inlinevirtual |
Copy during cloning.
Definition at line 102 of file donald.cpp.
|
inlinevirtual |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< Driver::IgnoreStepOption< Space > >.
Definition at line 107 of file donald.cpp.
|
Main-function.
Definition at line 118 of file donald.cpp.