Generated on Wed Nov 1 15:04:51 2006 for Gecode by doxygen 1.4.5

MagicSquare Class Reference
[Example scripts (models)]

Inherits Example.

List of all members.


Detailed Description

Example: Magic squares

Compute 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 Spacecopy (bool share)
 Copy during cloning.
virtual void print (void)
 Print solution.


Constructor & Destructor Documentation

MagicSquare::MagicSquare const Options opt  )  [inline]
 

Post constraints.

Definition at line 42 of file magic-square.cc.

MagicSquare::MagicSquare bool  share,
MagicSquare s
[inline]
 

Constructor for cloning s.

Definition at line 80 of file magic-square.cc.


Member Function Documentation

virtual Space* MagicSquare::copy bool  share  )  [inline, virtual]
 

Copy during cloning.

Implements Gecode::Space.

Definition at line 86 of file magic-square.cc.

virtual void MagicSquare::print void   )  [inline, virtual]
 

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: