Public Types |
Public Member Functions |
Protected Attributes |
Static Protected Attributes |
Related Symbols |
List of all members
Money Class Reference
Example: SEND+MORE=MONEY puzzle More...
Public Types | |
| enum | { MODEL_SINGLE , MODEL_CARRY } |
| Model variants. More... | |
Public Member Functions | |
| Money (const Options &opt) | |
| Actual model. | |
| virtual void | print (std::ostream &os) const |
| Print solution. | |
| Money (Money &s) | |
| Constructor for cloning s. | |
| virtual Space * | copy (void) |
| Copy during cloning. | |
| 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. | |
Protected Attributes | |
| IntVarArray | le |
| Array of letters. | |
Static Protected Attributes | |
| static const int | nl = 8 |
| Number of letters. | |
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=nullptr) |
Detailed Description
Example: SEND+MORE=MONEY puzzle
Well-known cryptoarithmetic puzzle. Henry Dudeney, Strand Magazine, July 1924.
Member Enumeration Documentation
◆ anonymous enum
| anonymous enum |
Constructor & Destructor Documentation
◆ Money() [1/2]
◆ Money() [2/2]
|
inline |
Member Function Documentation
◆ print()
|
inlinevirtual |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< Driver::IgnoreStepOption< Space > >.
◆ copy()
|
inlinevirtual |
Friends And Related Symbol Documentation
◆ main()
Member Data Documentation
◆ nl
◆ le
|
protected |
The documentation for this class was generated from the following file:
- examples/money.cpp
