Gecode::Driver::ScriptBase< BaseSpace > Class Template Reference
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) |
Detailed Description
template<class BaseSpace>
class Gecode::Driver::ScriptBase< BaseSpace >
Parametric base-class for scripts.
All scripts must inherit from this class
- adds printing and comparison for Gist to scripts
- run allows to execute scripts
Definition at line 548 of file driver.hh.
Constructor & Destructor Documentation
Gecode::Driver::ScriptBase< BaseSpace >::ScriptBase | ( | void | ) | [inline] |
Gecode::Driver::ScriptBase< BaseSpace >::ScriptBase | ( | bool | share, | |
ScriptBase< BaseSpace > & | e | |||
) | [inline] |
Member Function Documentation
virtual void Gecode::Driver::ScriptBase< BaseSpace >::print | ( | std::ostream & | os | ) | const [inline, virtual] |
Print a solution to os.
Reimplemented in AllInterval, Alpha, BACP, BIBD, BinPacking, BlackHole, CarSequencing, Crew, Crossword, CrowdedChess, DominatingQueens, Domino, Donald, EFPA, Eq20, Golf, GolombRuler, GraphColor, Grocery, Hamming, IndSet, Kakuro, Knights, LangfordNumber, MagicSequence, MagicSquare, MineSweeper, Money, Nonogram, OpenShop, OrthoLatinSquare, Partition, Pentominoes, PerfectSquare, Photo, QueenArmies, Queens, Radiotherapy, Sat, Schur, SportsLeague, SteelMill, Steiner, SudokuInt, SudokuSet, SudokuMixed, TSP, Warehouses, and WordSquare.
virtual void Gecode::Driver::ScriptBase< BaseSpace >::compare | ( | const Space & | , | |
std::ostream & | os | |||
) | const [inline, virtual] |
void Gecode::Driver::ScriptBase< Space >::run | ( | const Options & | opt | ) | [inline, 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.
The documentation for this class was generated from the following files:
- gecode/driver.hh (Revision: 11465)
- gecode/driver/script.hpp (Revision: 12052)