Generated on Mon Aug 25 11:35:48 2008 for Gecode by doxygen 1.5.6

OrthoLatinSquare Class Reference
[Scripts for problems]

Inherits Example.

List of all members.


Detailed Description

Example: Orthogonal latin squares

Definition at line 45 of file ortho-latin.cc.


Public Member Functions

IntVary1 (int i, int j)
 Access field at position i and j in first square.
IntVary2 (int i, int j)
 Access field at position i and j in second square.
 OrthoLatinSquare (const SizeOptions &opt)
 Actual model.
 OrthoLatinSquare (bool share, OrthoLatinSquare &s)
 Constructor for cloning s.
virtual Spacecopy (bool share)
 Copy during cloning.
virtual void print (std::ostream &os)
 Print solution.

Protected Attributes

const int n
 Size of squares.
IntVarArray x1
 Fields of first square.
IntVarArray x2
 Fields of second square.

Constructor & Destructor Documentation

OrthoLatinSquare::OrthoLatinSquare ( const SizeOptions opt  )  [inline]

Actual model.

Definition at line 65 of file ortho-latin.cc.

OrthoLatinSquare::OrthoLatinSquare ( bool  share,
OrthoLatinSquare s 
) [inline]

Constructor for cloning s.

Definition at line 121 of file ortho-latin.cc.


Member Function Documentation

IntVar& OrthoLatinSquare::y1 ( int  i,
int  j 
) [inline]

Access field at position i and j in first square.

Definition at line 56 of file ortho-latin.cc.

IntVar& OrthoLatinSquare::y2 ( int  i,
int  j 
) [inline]

Access field at position i and j in second square.

Definition at line 60 of file ortho-latin.cc.

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

Copy during cloning.

Implements Gecode::Space.

Definition at line 129 of file ortho-latin.cc.

virtual void OrthoLatinSquare::print ( std::ostream &  os  )  [inline, virtual]

Print solution.

Reimplemented from Example.

Definition at line 134 of file ortho-latin.cc.


Member Data Documentation

const int OrthoLatinSquare::n [protected]

Size of squares.

Definition at line 48 of file ortho-latin.cc.

Fields of first square.

Definition at line 50 of file ortho-latin.cc.

Fields of second square.

Definition at line 52 of file ortho-latin.cc.


The documentation for this class was generated from the following file: