Generated on Tue May 22 09:40:49 2018 for Gecode by doxygen 1.6.3

OrthoLatinSquare Class Reference
[Example scripts (models)]

Example: Orthogonal latin squares More...

List of all members.

Public Member Functions

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

Protected Attributes

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

Detailed Description

Example: Orthogonal latin squares

Definition at line 44 of file ortho-latin.cpp.


Constructor & Destructor Documentation

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

Actual model.

Definition at line 72 of file ortho-latin.cpp.

OrthoLatinSquare::OrthoLatinSquare ( OrthoLatinSquare s  )  [inline]

Constructor for cloning s.

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


Member Function Documentation

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

Access field at position i and j in first square.

Definition at line 55 of file ortho-latin.cpp.

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

Access field at position i and j in first square.

Definition at line 59 of file ortho-latin.cpp.

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

Access field at position i and j in second square.

Definition at line 63 of file ortho-latin.cpp.

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

Access field at position i and j in second square.

Definition at line 67 of file ortho-latin.cpp.

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

Copy during cloning.

Definition at line 137 of file ortho-latin.cpp.

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

Print solution.

Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.

Definition at line 142 of file ortho-latin.cpp.


Member Data Documentation

const int OrthoLatinSquare::n [protected]

Size of squares.

Definition at line 47 of file ortho-latin.cpp.

Fields of first square.

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

Fields of second square.

Definition at line 51 of file ortho-latin.cpp.


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