Generated on Tue Oct 24 2017 22:44:26 for Gecode by doxygen 1.8.5
Gecode::Search::Engine Class Referenceabstract

Search engine implementation interface More...

#include <search.hh>

Public Member Functions

virtual Spacenext (void)=0
 Return next solution (NULL, if none exists or search has been stopped) More...
 
virtual Statistics statistics (void) const =0
 Return statistics. More...
 
virtual bool stopped (void) const =0
 Check whether engine has been stopped. More...
 
virtual void reset (Space *s)
 Reset engine to restart at space s (does nothing) More...
 
virtual NoGoodsnogoods (void)
 Return no-goods (the no-goods are empty) More...
 
virtual ~Engine (void)
 Destructor. More...
 

Memory management

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

Search engine implementation interface

Definition at line 601 of file search.hh.

Constructor & Destructor Documentation

Gecode::Search::Engine::~Engine ( void  )
inlinevirtual

Destructor.

Definition at line 41 of file engine.hpp.

Member Function Documentation

virtual Space* Gecode::Search::Engine::next ( void  )
pure virtual

Return next solution (NULL, if none exists or search has been stopped)

Implemented in Gecode::Search::Parallel::Engine, Gecode::Search::Meta::RBS, and Gecode::Search::WorkerToEngine< Worker >.

virtual Statistics Gecode::Search::Engine::statistics ( void  ) const
pure virtual
virtual bool Gecode::Search::Engine::stopped ( void  ) const
pure virtual

Check whether engine has been stopped.

Implemented in Gecode::Search::Parallel::Engine, Gecode::Search::Meta::RBS, and Gecode::Search::WorkerToEngine< Worker >.

void Gecode::Search::Engine::reset ( Space s)
virtual

Reset engine to restart at space s (does nothing)

Reimplemented in Gecode::Search::Parallel::BAB, Gecode::Search::Parallel::DFS, and Gecode::Search::WorkerToEngine< Worker >.

Definition at line 43 of file engine.cpp.

NoGoods & Gecode::Search::Engine::nogoods ( void  )
virtual

Return no-goods (the no-goods are empty)

Reimplemented in Gecode::Search::Parallel::BAB, Gecode::Search::Parallel::DFS, and Gecode::Search::WorkerToEngine< Worker >.

Definition at line 47 of file engine.cpp.

void * Gecode::Search::Engine::operator new ( size_t  s)
inlinestatic

Allocate memory from heap.

Definition at line 43 of file engine.hpp.

void Gecode::Search::Engine::operator delete ( void *  p)
inlinestatic

Free memory allocated from heap.

Definition at line 47 of file engine.hpp.


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