Generated on Sat Feb 7 2015 02:01:50 for Gecode by doxygen 1.8.9.1

Stop-object based on time More...

#include <search.hh>

Public Member Functions

 TimeStop (unsigned long int l)
 Stop if search exceeds l milliseconds (from creation of this object) More...
 
unsigned long int limit (void) const
 Return current limit in milliseconds. More...
 
void limit (unsigned long int l)
 Set current limit to l milliseconds. More...
 
void reset (void)
 Reset time to zero. More...
 
virtual bool stop (const Statistics &s, const Options &o)
 Return true if time limit is exceeded. More...
 
- Public Member Functions inherited from Gecode::Search::Stop
 Stop (void)
 Default constructor. More...
 
virtual ~Stop (void)
 Destructor. More...
 

Protected Attributes

Support::Timer t
 Time when execution should stop. More...
 
unsigned long int l
 Current limit in milliseconds. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Gecode::Search::Stop
static void * operator new (size_t s)
 Allocate memory from heap. More...
 
static void operator delete (void *p)
 Free memory allocated from heap. More...
 

Detailed Description

Stop-object based on time

Definition at line 326 of file search.hh.

Constructor & Destructor Documentation

Gecode::Search::TimeStop::TimeStop ( unsigned long int  l)
inline

Stop if search exceeds l milliseconds (from creation of this object)

Definition at line 104 of file stop.hpp.

Member Function Documentation

unsigned long int Gecode::Search::TimeStop::limit ( void  ) const
inline

Return current limit in milliseconds.

Definition at line 110 of file stop.hpp.

void Gecode::Search::TimeStop::limit ( unsigned long int  l)
inline

Set current limit to l milliseconds.

Definition at line 115 of file stop.hpp.

void Gecode::Search::TimeStop::reset ( void  )
inline

Reset time to zero.

Definition at line 120 of file stop.hpp.

bool Gecode::Search::TimeStop::stop ( const Statistics s,
const Options o 
)
virtual

Return true if time limit is exceeded.

Implements Gecode::Search::Stop.

Definition at line 67 of file stop.cpp.

Member Data Documentation

Support::Timer Gecode::Search::TimeStop::t
protected

Time when execution should stop.

Definition at line 329 of file search.hh.

unsigned long int Gecode::Search::TimeStop::l
protected

Current limit in milliseconds.

Definition at line 331 of file search.hh.


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