#include <SgSearchControl.h>
Inheritance diagram for SgNodeSearchControl:
Definition at line 93 of file SgSearchControl.h.
Public Member Functions | |
SgNodeSearchControl (int maxNumNodes) | |
virtual | ~SgNodeSearchControl () |
virtual bool | Abort (double ignoreElapsedTime, int numNodes) |
Check if search should be aborted. | |
void | SetMaxNumNodes (int maxNumNodes) |
virtual bool | StartNextIteration (int depth, double elapsedTime, int numNodes) |
Check if next iteration should be started. | |
Private Member Functions | |
SgNodeSearchControl (const SgNodeSearchControl &) | |
Not implemented. | |
SgNodeSearchControl & | operator= (const SgNodeSearchControl &) |
Not implemented. | |
Private Attributes | |
int | m_maxNumNodes |
SgNodeSearchControl::SgNodeSearchControl | ( | int | maxNumNodes | ) |
Definition at line 44 of file SgSearchControl.cpp.
SgNodeSearchControl::~SgNodeSearchControl | ( | ) | [virtual] |
Definition at line 48 of file SgSearchControl.cpp.
SgNodeSearchControl::SgNodeSearchControl | ( | const SgNodeSearchControl & | ) | [private] |
Not implemented.
bool SgNodeSearchControl::Abort | ( | double | ignoreElapsedTime, | |
int | numNodes | |||
) | [virtual] |
Check if search should be aborted.
Called at each node.
Implements SgSearchControl.
Definition at line 52 of file SgSearchControl.cpp.
References m_maxNumNodes, and SG_UNUSED().
SgNodeSearchControl& SgNodeSearchControl::operator= | ( | const SgNodeSearchControl & | ) | [private] |
Not implemented.
void SgNodeSearchControl::SetMaxNumNodes | ( | int | maxNumNodes | ) |
bool SgSearchControl::StartNextIteration | ( | int | depth, | |
double | elapsedTime, | |||
int | numNodes | |||
) | [virtual, inherited] |
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().
int SgNodeSearchControl::m_maxNumNodes [private] |