Alpha Class Reference
[Scripts for problems]
Inherits Example.
Detailed Description
Example: Alpha puzzleWell-known cryptoarithmetic puzzle of unknown origin.
Definition at line 49 of file alpha.cc.
Public Types | |
| enum | { BRANCH_NONE, BRANCH_SIZE } |
| Branching to use for model. More... | |
Public Member Functions | |
| Alpha (const Options &opt) | |
| Actual model. | |
| Alpha (bool share, Alpha &s) | |
| Constructor for cloning s. | |
| virtual Space * | copy (bool share) |
| Copy during cloning. | |
| virtual void | print (std::ostream &os) |
| Print solution. | |
Protected Attributes | |
| IntVarArray | le |
| Array for letters. | |
Static Protected Attributes | |
| static const int | n = 26 |
| Alphabet has 26 letters. | |
Member Enumeration Documentation
| anonymous enum |
Constructor & Destructor Documentation
| Alpha::Alpha | ( | bool | share, | |
| Alpha & | s | |||
| ) | [inline] |
Member Function Documentation
| virtual Space* Alpha::copy | ( | bool | share | ) | [inline, virtual] |
| virtual void Alpha::print | ( | std::ostream & | os | ) | [inline, virtual] |
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.cc (Revision: 6259)
