Alpha Class Reference
[Example scripts (models)]
Example: Alpha puzzle More...
Public Types | |
| enum | { BRANCH_NONE, BRANCH_INVERSE, BRANCH_SIZE } |
Branching to use for model. More... | |
Public Member Functions | |
| Alpha (const Options &opt) | |
| Actual model. | |
| Alpha (Alpha &s) | |
| Constructor for cloning s. | |
| virtual Space * | copy (void) |
| Copy during cloning. | |
| virtual void | print (std::ostream &os) const |
| Print solution. | |
Protected Attributes | |
| IntVarArray | le |
| Array for letters. | |
Static Protected Attributes | |
| static const int | n = 26 |
| Alphabet has 26 letters. | |
Detailed Description
Example: Alpha puzzle
Well-known cryptoarithmetic puzzle of unknown origin.
Definition at line 49 of file alpha.cpp.
Member Enumeration Documentation
| anonymous enum |
Constructor & Destructor Documentation
| Alpha::Alpha | ( | const Options & | opt | ) | [inline] |
| Alpha::Alpha | ( | Alpha & | s | ) | [inline] |
Member Function Documentation
| virtual Space* Alpha::copy | ( | void | ) | [inline, virtual] |
| virtual void Alpha::print | ( | std::ostream & | os | ) | const [inline, virtual] |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.
Member Data Documentation
const int Alpha::n = 26 [static, protected] |
IntVarArray Alpha::le [protected] |
The documentation for this class was generated from the following file:
- examples/alpha.cpp
