#include <SgSearchControl.h>
Inheritance diagram for SgCombinedSearchControl:

Definition at line 123 of file SgSearchControl.h.
Public Member Functions | |
| SgCombinedSearchControl (double maxTime, int maxNumNodes) | |
| virtual | ~SgCombinedSearchControl () |
| virtual bool | Abort (double elapsedTime, int numNodes) |
| 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 | |
| SgCombinedSearchControl (const SgCombinedSearchControl &) | |
| Not implemented. | |
| SgCombinedSearchControl & | operator= (const SgCombinedSearchControl &) |
| Not implemented. | |
Private Attributes | |
| double | m_maxTime |
| int | m_maxNumNodes |
| SgCombinedSearchControl::SgCombinedSearchControl | ( | double | maxTime, | |
| int | maxNumNodes | |||
| ) |
Definition at line 145 of file SgSearchControl.h.
| SgCombinedSearchControl::~SgCombinedSearchControl | ( | ) | [virtual] |
Definition at line 60 of file SgSearchControl.cpp.
| SgCombinedSearchControl::SgCombinedSearchControl | ( | const SgCombinedSearchControl & | ) | [private] |
Not implemented.
| bool SgCombinedSearchControl::Abort | ( | double | elapsedTime, | |
| int | numNodes | |||
| ) | [virtual] |
Check if search should be aborted.
Called at each node.
Implements SgSearchControl.
Definition at line 64 of file SgSearchControl.cpp.
References m_maxNumNodes, and m_maxTime.
| SgCombinedSearchControl& SgCombinedSearchControl::operator= | ( | const SgCombinedSearchControl & | ) | [private] |
Not implemented.
| 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 SgCombinedSearchControl::m_maxNumNodes [private] |
double SgCombinedSearchControl::m_maxTime [private] |