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
MagicSquare::MagicSquare | ( | const Options & | opt | ) | [inline] |
MagicSquare::MagicSquare | ( | bool | share, | |
MagicSquare & | s | |||
) | [inline] |
Member Function Documentation
virtual Space* MagicSquare::copy | ( | bool | share | ) | [inline, virtual] |
virtual void MagicSquare::print | ( | void | ) | [inline, virtual] |
The documentation for this class was generated from the following file:
- examples/magic-square.cc (Revision: 3188)