Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgSearchControl Class Reference

#include <SgSearchControl.h>

Inheritance diagram for SgSearchControl:

Inheritance graph
List of all members.

Detailed Description

Resource control used in class SgSearch.

Definition at line 17 of file SgSearchControl.h.

Public Member Functions

 SgSearchControl ()
virtual ~SgSearchControl ()
virtual bool Abort (double elapsedTime, int numNodes)=0
 Check if search should be aborted.
virtual bool StartNextIteration (int depth, double elapsedTime, int numNodes)
 Check if next iteration should be started.

Private Member Functions

 SgSearchControl (const SgSearchControl &)
 Not implemented.
SgSearchControloperator= (const SgSearchControl &)
 Not implemented.

Constructor & Destructor Documentation

SgSearchControl::SgSearchControl (  ) 

Definition at line 47 of file SgSearchControl.h.

SgSearchControl::~SgSearchControl (  )  [virtual]

Definition at line 12 of file SgSearchControl.cpp.

SgSearchControl::SgSearchControl ( const SgSearchControl  )  [private]

Not implemented.

Member Function Documentation

virtual bool SgSearchControl::Abort ( double  elapsedTime,
int  numNodes 
) [pure virtual]

Check if search should be aborted.

Called at each node.

Implemented in SgTimeSearchControl, SgNodeSearchControl, SgCombinedSearchControl, and SgRelaxedSearchControl.

Referenced by SgSearch::AbortSearch().

SgSearchControl& SgSearchControl::operator= ( const SgSearchControl  )  [private]

Not implemented.

bool SgSearchControl::StartNextIteration ( int  depth,
double  elapsedTime,
int  numNodes 
) [virtual]

Check if next iteration should be started.

Called before each iteration. The default implementation always returns true.

depth The depth of the next iteration.
elapsedTime The elapsed time in seconds.
numNodes The number of nodes visited.

Definition at line 16 of file SgSearchControl.cpp.

References SG_UNUSED().

Referenced by SgSearch::IteratedSearch().

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

17 Jun 2010 Doxygen 1.4.7