Generated on Mon Aug 25 11:35:48 2008 for Gecode by doxygen 1.5.6

Example Class Reference

#include <support.hh>

Inherits Gecode::Space.

Inherited by AllInterval, Alpha, BACP, Baseline, BIBD, BlackHole, Crew, CrowdedChess, Domino, Donald, Eq20, Golf, GolombRuler, GraphColor, Grocery, Hamming, IndSet, JavaScript, Kakuro, Knights, LangfordNumber, MagicSequence, MagicSquare, MineSweeper, Money, Nonogram, OrthoLatinSquare, Partition, Pentominoes, PerfectSquare, Photo, QueenArmies, Queens, SportsLeague, Steiner, StressDistinct, StressDomain, StressElement, StressExec, StressExtensional, StressLinearBool, StressMin, StressSearch, Sudoku, TSP, and Warehouses.

List of all members.


Detailed Description

Base-class for Gecode examples.

All examples must inherit from this class

  • adds printing to examples
  • run allows to execute examples

Definition at line 318 of file support.hh.


Public Member Functions

 Example (void)
 Default constructor.
 Example (bool share, Example &e)
 Constructor used for cloning.
virtual void print (std::ostream &os)
 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 example with search engine Engine and options opt.

Constructor & Destructor Documentation

Example::Example ( void   )  [inline]

Default constructor.

Definition at line 321 of file support.hh.

Example::Example ( bool  share,
Example e 
) [inline]

Constructor used for cloning.

Definition at line 323 of file support.hh.


Member Function Documentation

template<class Script, template< class > class Engine, class Options>
void Example::run ( const Options opt  )  [inline, static]

Run example with search engine Engine and options opt.

Definition at line 188 of file example.icc.


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