Money Class Reference
[Example scripts (models)]
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. | |
Protected Attributes | |
| IntVarArray | le |
| Array of letters. | |
Static Protected Attributes | |
| static const int | nl = 8 |
| Number of letters. | |
Detailed Description
Example: SEND+MORE=MONEY puzzle
Well-known cryptoarithmetic puzzle. Henry Dudeney, Strand Magazine, July 1924.
Definition at line 49 of file money.cpp.
Member Enumeration Documentation
| anonymous enum |
Constructor & Destructor Documentation
| Money::Money | ( | const Options & | opt | ) | [inline] |
| Money::Money | ( | Money & | s | ) | [inline] |
Member Function Documentation
| virtual void Money::print | ( | std::ostream & | os | ) | const [inline, virtual] |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.
| virtual Space* Money::copy | ( | void | ) | [inline, virtual] |
Member Data Documentation
const int Money::nl = 8 [static, protected] |
IntVarArray Money::le [protected] |
The documentation for this class was generated from the following file:
- examples/money.cpp
