Example: Alpha puzzle
More...
List of all members.
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) const |
| Print solution.
|
| ScriptBase (void) |
| Default constructor.
|
| ScriptBase (bool share, ScriptBase &e) |
| Constructor used for cloning.
|
virtual void | compare (const Space &, std::ostream &os) const |
| Compare with s.
|
Static Protected Attributes |
static const int | n = 26 |
| Alphabet has 26 letters.
|
Related Functions |
(Note that these are not member functions.)
|
int | main (int argc, char *argv[]) |
| Main-function.
|
Additional Inherited Members |
template<class Script , template< class > class Engine, class Options > |
static void | run (const Options &opt) |
Detailed Description
Example: Alpha puzzle
Well-known cryptoarithmetic puzzle of unknown origin.
Definition at line 53 of file alpha.cpp.
Member Enumeration Documentation
Branching to use for model.
- Enumerator:
BRANCH_NONE |
Choose variable left to right.
|
BRANCH_INVERSE |
Choose variable right to left.
|
BRANCH_SIZE |
Choose variable with smallest size.
|
Definition at line 61 of file alpha.cpp.
Constructor & Destructor Documentation
Alpha::Alpha |
( |
const Options & |
opt | ) |
|
|
inline |
Alpha::Alpha |
( |
bool |
share, |
|
|
Alpha & |
s |
|
) |
| |
|
inline |
Constructor for cloning s.
Definition at line 112 of file alpha.cpp.
Member Function Documentation
virtual Space* Alpha::copy |
( |
bool |
share | ) |
|
|
inlinevirtual |
Copy during cloning.
Definition at line 117 of file alpha.cpp.
virtual void Alpha::print |
( |
std::ostream & |
os | ) |
const |
|
inlinevirtual |
Friends And Related Function Documentation
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
|
related |
Member Data Documentation
Alphabet has 26 letters.
Definition at line 56 of file alpha.cpp.
Array for letters.
Definition at line 58 of file alpha.cpp.
The documentation for this class was generated from the following file: