Parametric base-class for scripts. More...
#include <driver.hh>
Public Member Functions | |
ScriptBase (void) | |
Default constructor. | |
ScriptBase (bool share, ScriptBase &e) | |
Constructor used for cloning. | |
virtual void | print (std::ostream &os) const |
Print a solution to os. | |
virtual void | compare (const Space &, std::ostream &os) const |
Compare with s. | |
Static Public Member Functions | |
template<class Script , template< class > class Engine, class Options > | |
static void | run (const Options &opt) |
Parametric base-class for scripts.
All scripts must inherit from this class
Gecode::Driver::ScriptBase< BaseSpace >::ScriptBase | ( | void | ) | [inline] |
Gecode::Driver::ScriptBase< BaseSpace >::ScriptBase | ( | bool | share, |
ScriptBase< BaseSpace > & | e | ||
) | [inline] |
virtual void Gecode::Driver::ScriptBase< BaseSpace >::print | ( | std::ostream & | os | ) | const [inline, virtual] |
Print a solution to os.
Reimplemented in Kakuro, BinPacking, Pentominoes, SudokuMixed, GraphColor, CarSequencing, CrowdedChess, BlackHole, SudokuSet, SportsLeague, TSP, PerfectSquare, OpenShop, EFPA, SteelMill, Knights, BACP, Radiotherapy, SudokuInt, Domino, Nonogram, LangfordNumber, Crossword, Warehouses, Golf, QueenArmies, OrthoLatinSquare, Sat, Crew, BIBD, Photo, Steiner, DominatingQueens, WordSquare, Alpha, MineSweeper, IndSet, GolombRuler, Schur, Hamming, MagicSquare, Donald, Queens, Partition, AllInterval, Eq20, MagicSequence, Money, and Grocery.
virtual void Gecode::Driver::ScriptBase< BaseSpace >::compare | ( | const Space & | , |
std::ostream & | os | ||
) | const [inline, virtual] |
void Gecode::Driver::ScriptBase< Space >::run | ( | const Options & | opt | ) | [static] |
Run script with search engine Engine and options opt
In the solution and stat modes, search can be aborted by sending SIGINT to the process (i.e., pressing Ctrl-C on the command line).
Definition at line 193 of file script.hpp.