Example: Orthogonal latin squares
More...
List of all members.
|
Public Member Functions |
| IntVar & | y1 (int i, int j) |
| | Access field at position i and j in first square.
|
| const IntVar & | y1 (int i, int j) const |
| | Access field at position i and j in first square.
|
| IntVar & | y2 (int i, int j) |
| | Access field at position i and j in second square.
|
| const IntVar & | y2 (int i, int j) const |
| | 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 Space * | copy (bool share) |
| | 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 48 of file ortho-latin.cpp.
Constructor & Destructor Documentation
| OrthoLatinSquare::OrthoLatinSquare |
( |
const SizeOptions & |
opt |
) |
[inline] |
| OrthoLatinSquare::OrthoLatinSquare |
( |
bool |
share, |
|
|
OrthoLatinSquare & |
s | |
|
) |
| | [inline] |
Member Function Documentation
| IntVar& OrthoLatinSquare::y1 |
( |
int |
i, |
|
|
int |
j | |
|
) |
| | [inline] |
Access field at position i and j in first square.
Definition at line 59 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 63 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 67 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 71 of file ortho-latin.cpp.
| virtual Space* OrthoLatinSquare::copy |
( |
bool |
share |
) |
[inline, virtual] |
| virtual void OrthoLatinSquare::print |
( |
std::ostream & |
os |
) |
const [inline, virtual] |
Member Data Documentation
The documentation for this class was generated from the following file: