MagicSquare Class Reference
[Scripts for problems]
Inherits Example.
Detailed Description
Example: Magic squaresCompute magic squares of arbitrary size
See problem 19 at http://www.csplib.org/.
Definition at line 51 of file magic-square.cc.
Public Member Functions | |
| MagicSquare (const SizeOptions &opt) | |
| Post constraints. | |
| MagicSquare (bool share, MagicSquare &s) | |
| Constructor for cloning s. | |
| virtual Space * | copy (bool share) |
| Copy during cloning. | |
| virtual void | print (std::ostream &os) |
| Print solution. | |
Constructor & Destructor Documentation
| MagicSquare::MagicSquare | ( | const SizeOptions & | opt | ) | [inline] |
| MagicSquare::MagicSquare | ( | bool | share, | |
| MagicSquare & | s | |||
| ) | [inline] |
Member Function Documentation
| virtual Space* MagicSquare::copy | ( | bool | share | ) | [inline, virtual] |
| virtual void MagicSquare::print | ( | std::ostream & | os | ) | [inline, virtual] |
The documentation for this class was generated from the following file:
- examples/magic-square.cc (Revision: 5524)
