Generated on Tue Sep 25 2012 20:53:26 for Gecode by doxygen 1.7.5
Gecode::Driver::ScriptBase Class Reference

Parametric base-class for scripts. More...

#include <driver.hh>

List of all members.

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

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

Constructor & Destructor Documentation

Gecode::Driver::ScriptBase::ScriptBase ( void  ) [inline]

Default constructor.

Definition at line 551 of file driver.hh.

Gecode::Driver::ScriptBase::ScriptBase ( bool  share,
ScriptBase e 
) [inline]

Constructor used for cloning.

Definition at line 553 of file driver.hh.


Member Function Documentation

virtual void Gecode::Driver::ScriptBase::compare ( const Space ,
std::ostream &  os 
) const [inline, virtual]

Compare with s.

Definition at line 557 of file driver.hh.

template<class Script , template< class > class Engine, class Options >
void Gecode::Driver::ScriptBase::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.


The documentation for this class was generated from the following files: