Generated on Thu Jan 31 2019 20:56:52 for Gecode by doxygen 1.8.15
Gecode::Search::Meta::Parallel::PortfolioStop Class Reference

Stop object used for controling slaves in a portfolio. More...

#include <pbs.hh>

Public Member Functions

 PortfolioStop (Stop *so)
 Initialize. More...
 
void share (volatile bool *ts)
 Set pointer to shared tostop variable. More...
 
virtual bool stop (const Statistics &s, const Options &o)
 Return true if portfolio engine must be stopped. More...
 
void stop (bool s)
 Signal whether search must be stopped. More...
 
bool stop (void) const
 Whether search must be stopped. More...
 
- Public Member Functions inherited from Gecode::Search::Stop
 Stop (void)
 Default constructor. More...
 
virtual ~Stop (void)
 Destructor. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Gecode::Search::Stop
static Stopnode (unsigned long int l)
 Stop if node limit l has been exceeded. More...
 
static Stopfail (unsigned long int l)
 Stop if failure limit l has been exceeded. More...
 
static Stoptime (unsigned long int l)
 Stop if time limit l (in milliseconds) has been exceeded. More...
 
- Static Public Member Functions inherited from Gecode::HeapAllocated
static void * operator new (size_t s)
 Memory management. More...
 
static void operator delete (void *p)
 Free memory allocated from heap. More...
 

Detailed Description

Stop object used for controling slaves in a portfolio.

Definition at line 46 of file pbs.hh.

Constructor & Destructor Documentation

◆ PortfolioStop()

Gecode::Search::Meta::Parallel::PortfolioStop::PortfolioStop ( Stop so)
inline

Initialize.

Definition at line 117 of file pbs.hpp.

Member Function Documentation

◆ share()

void Gecode::Search::Meta::Parallel::PortfolioStop::share ( volatile bool *  ts)
inline

Set pointer to shared tostop variable.

Definition at line 121 of file pbs.hpp.

◆ stop() [1/3]

bool Gecode::Search::Meta::Parallel::PortfolioStop::stop ( const Statistics s,
const Options o 
)
virtual

Return true if portfolio engine must be stopped.

Implements Gecode::Search::Stop.

Definition at line 43 of file pbs.cpp.

◆ stop() [2/3]

void Gecode::Search::Meta::Parallel::PortfolioStop::stop ( bool  s)

Signal whether search must be stopped.

◆ stop() [3/3]

bool Gecode::Search::Meta::Parallel::PortfolioStop::stop ( void  ) const

Whether search must be stopped.


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