Setting up scripts
[Interfacing to Gecode]
Collaboration diagram for Setting up scripts:
Detailed Description
Scripts (or models) are programmed by inheriting from the class Gecode::Space. For many examples see Example scripts (models).
Functions | |
Gecode::Space::Space (void) | |
Default constructor. | |
virtual | Gecode::Space::~Space (void) |
Destructor. | |
Gecode::Space::Space (bool share, Space &s) | |
Constructor for cloning. | |
virtual Space * | Gecode::Space::copy (bool share)=0 |
Copying member function. | |
static void * | Gecode::Space::operator new (size_t) |
Allocate memory from heap for new space. | |
static void | Gecode::Space::operator delete (void *) |
Free memory allocated from heap. |
Function Documentation
|
Default constructor.
|
|
Destructor.
|
|
Constructor for cloning. Must copy and update all data structures (such as variables and variable arrays) required by the subclass of Space. If share is true, share all data structures among copies. Otherwise, make independent copies. |
|
Copying member function. Must create a new object using the constructor for cloning. Implemented in AllInterval, AllInterval, Alpha, Baseline, BIBD, BlackHole, Cars, Crew, CrowdedChess, Donald, Eq20, Golf, Golomb, GraphColor, Grocery, Hamming, IndSet, Knights, LangfordNum, MagicSequence, MagicSequence, MagicSquare, Money, OrthoLatinSquare, Packing, Partition, Photo, PicturePuzzle, QueenArmies, Queens, SportsLeague, Steiner, StressDomain, StressElement, StressExec, StressMin, StressSearch, SudokuMixed, SudokuSet, Sudoku, and Warehouses. |
|
Allocate memory from heap for new space.
|
|
Free memory allocated from heap.
|