MagicSquare Class Reference
[Example scripts (models)]
Inherits Example.
Detailed Description
Example: Magic squaresCompute magic squares of arbitrary size
Definition at line 33 of file magic-square.cc.
Public Member Functions | |
MagicSquare (const Options &opt) | |
Post constraints. | |
MagicSquare (bool share, MagicSquare &s) | |
Constructor for cloning s. | |
virtual Space * | copy (bool share) |
Copy during cloning. | |
virtual void | print (void) |
Print solution. |
Constructor & Destructor Documentation
|
Post constraints.
Definition at line 42 of file magic-square.cc. |
|
Constructor for cloning s.
Definition at line 80 of file magic-square.cc. |
Member Function Documentation
|
Copy during cloning.
Implements Gecode::Space. Definition at line 86 of file magic-square.cc. |
|
Print solution.
Reimplemented from Example. Definition at line 91 of file magic-square.cc. |
The documentation for this class was generated from the following file:
- examples/magic-square.cc (Revision: 3188)