Generated on Mon May 10 06:46:55 2010 for Gecode by doxygen 1.6.3

Gecode::Driver::Cutoff Class Reference

Stop object based on nodes, failures, and time. More...

#include <script.hpp>

List of all members.

Public Types

enum  { SR_NODE = 1 << 0, SR_FAIL = 1 << 1, SR_TIME = 1 << 2 }
 

Reason why search has been stopped.

More...

Public Member Functions

virtual bool stop (const Search::Statistics &s, const Search::Options &o)
 Test whether search must be stopped.
int reason (const Search::Statistics &s, const Search::Options &o)
 Report reason why search has been stopped.
 ~Cutoff (void)
 Destructor.

Static Public Member Functions

static Search::Stopcreate (unsigned int node, unsigned int fail, unsigned int time)
 Create appropriate stop-object.

Detailed Description

Stop object based on nodes, failures, and time.

Definition at line 48 of file script.hpp.


Member Enumeration Documentation

anonymous enum

Reason why search has been stopped.

Enumerator:
SR_NODE 

Node limit reached.

SR_FAIL 

Fail limit reached.

SR_TIME 

Time limit reached.

Definition at line 60 of file script.hpp.


Constructor & Destructor Documentation

Gecode::Driver::Cutoff::~Cutoff ( void   )  [inline]

Destructor.

Definition at line 88 of file script.hpp.


Member Function Documentation

virtual bool Gecode::Driver::Cutoff::stop ( const Search::Statistics s,
const Search::Options o 
) [inline, virtual]

Test whether search must be stopped.

Implements Gecode::Search::Stop.

Definition at line 66 of file script.hpp.

int Gecode::Driver::Cutoff::reason ( const Search::Statistics s,
const Search::Options o 
) [inline]

Report reason why search has been stopped.

Definition at line 73 of file script.hpp.

static Search::Stop* Gecode::Driver::Cutoff::create ( unsigned int  node,
unsigned int  fail,
unsigned int  time 
) [inline, static]

Create appropriate stop-object.

Definition at line 81 of file script.hpp.


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