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

OrthoLatinSquare Class Reference

Inherits Example.

List of all members.


Detailed Description

Example: Orthogonal latin squares

Definition at line 29 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 Options &opt)
 Actual model.
 OrthoLatinSquare (bool share, OrthoLatinSquare &s)
 Constructor for cloning s.
virtual Spacecopy (bool share)
 Copy during cloning.
virtual void print (void)
 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 Options opt  )  [inline]
 

Actual model.

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

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

Constructor for cloning s.

Definition at line 105 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 40 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 44 of file ortho-latin.cc.

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

Copy during cloning.

Implements Gecode::Space.

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

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

Print solution.

Reimplemented from Example.

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


Member Data Documentation

const int OrthoLatinSquare::n [protected]
 

Size of squares.

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

IntVarArray OrthoLatinSquare::x1 [protected]
 

Fields of first square.

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

IntVarArray OrthoLatinSquare::x2 [protected]
 

Fields of second square.

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


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