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. | |
Static Public Member Functions | |
| template<class Script , template< class > class Engine, class Options > | |
| static void | run (const Options &opt) |
| Run script with search engine Engine and 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 to scripts
- run allows to execute scripts
Definition at line 441 of file driver.hh.
Constructor & Destructor Documentation
template<class BaseSpace>
| Gecode::Driver::ScriptBase< BaseSpace >::ScriptBase | ( | void | ) | [inline] |
template<class BaseSpace>
| Gecode::Driver::ScriptBase< BaseSpace >::ScriptBase | ( | bool | share, | |
| ScriptBase< BaseSpace > & | e | |||
| ) | [inline] |
Member Function Documentation
template<class BaseSpace>
| virtual void Gecode::Driver::ScriptBase< BaseSpace >::print | ( | std::ostream & | os | ) | const [inline, virtual] |
Print a solution to os.
Reimplemented in AllInterval, Alpha, BACP, Baseline, BIBD, BlackHole, Crew, CrowdedChess, Domino, Donald, EFPA, Eq20, Golf, GolombRuler, GraphColor, Grocery, Hamming, IndSet, Kakuro, Knights, LangfordNumber, MagicSequence, MagicSquare, MineSweeper, Money, Nonogram, OrthoLatinSquare, Partition, Pentominoes, PerfectSquare, Photo, QueenArmies, Queens, Radiotherapy, Sat, SportsLeague, SteelMill, Steiner, StressDistinct, StressDomain, StressElement, StressExec, StressExtensional, StressLinearBool, StressMin, StressSearch, SudokuInt, SudokuSet, SudokuMixed, TSP, and Warehouses.
template<class Space >
template<class Script , template< class > class Engine, class Options >
| void Gecode::Driver::ScriptBase< Space >::run | ( | const Options & | opt | ) | [inline, static] |
The documentation for this class was generated from the following files:
- gecode/driver.hh (Revision: 9102)
- gecode/driver/script.hpp (Revision: 9046)
