Generated on for Gecode by doxygen 1.17.0

#include <gecode/search.hh>

Public Member Functions

 StdSearchTracer (std::ostream &os=std::cerr)
 Initialize with output stream os.
virtual void init (void)
 The search engine initializes.
virtual void round (unsigned int eid)
 The engine with id eid goes to a next round (restart or next iteration in LDS).
virtual void skip (const EdgeInfo &ei)
 The engine skips an edge.
virtual void node (const EdgeInfo &ei, const NodeInfo &ni)
 The engine creates a new node with information ei and ni.
virtual void done (void)
 All workers are done.
virtual ~StdSearchTracer (void)
 Delete.
 SearchTracer (void)
 Initialize.
unsigned int workers (void) const
 Return number of workers.
unsigned int engines (void) const
 Return number of engines.
const EngineInfoengine (unsigned int eid) const
 Provide access to engine with id eid.
unsigned int eid (unsigned int wid) const
 Return the engine id of a worker with id wid.
virtual ~SearchTracer (void)
 Delete.

Static Public Attributes

static StdSearchTracer def
 Default tracer (printing to std::cerr).

Protected Attributes

std::ostream & os
 Output stream to use.

Static Protected Attributes

static const char * t2s [EngineType::AOE+1]
 Map engine type to string.

Additional Inherited Members

Public Types inherited from Gecode::SearchTracer
enum  EngineType {
  DFS = 0 , BAB = 1 , LDS = 2 , RBS = 3 ,
  PBS = 4 , AOE = 5
}
 Which type of engine. More...
enum  NodeType { SOLVED = 0 , FAILED = 1 , BRANCH = 2 }
 Node type. More...

Detailed Description

Definition at line 375 of file search.hh.

Constructor & Destructor Documentation

◆ StdSearchTracer()

Gecode::StdSearchTracer::StdSearchTracer ( std::ostream & os = std::cerr)

Initialize with output stream os.

◆ ~StdSearchTracer()

virtual Gecode::StdSearchTracer::~StdSearchTracer ( void )
virtual

Delete.

Member Function Documentation

◆ init()

virtual void Gecode::StdSearchTracer::init ( void )
virtual

The search engine initializes.

Implements Gecode::SearchTracer.

◆ round()

virtual void Gecode::StdSearchTracer::round ( unsigned int eid)
virtual

The engine with id eid goes to a next round (restart or next iteration in LDS).

Implements Gecode::SearchTracer.

◆ skip()

virtual void Gecode::StdSearchTracer::skip ( const EdgeInfo & ei)
virtual

The engine skips an edge.

Implements Gecode::SearchTracer.

◆ node()

virtual void Gecode::StdSearchTracer::node ( const EdgeInfo & ei,
const NodeInfo & ni )
virtual

The engine creates a new node with information ei and ni.

Implements Gecode::SearchTracer.

◆ done()

virtual void Gecode::StdSearchTracer::done ( void )
virtual

All workers are done.

Implements Gecode::SearchTracer.

Member Data Documentation

◆ os

std::ostream& Gecode::StdSearchTracer::os
protected

Output stream to use.

Definition at line 378 of file search.hh.

◆ t2s

const char* Gecode::StdSearchTracer::t2s[EngineType::AOE+1]
staticprotected

Map engine type to string.

Definition at line 380 of file search.hh.

◆ def

StdSearchTracer Gecode::StdSearchTracer::def
static

Default tracer (printing to std::cerr).

Definition at line 397 of file search.hh.


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