GClasses
|
#include <GOptimizer.h>
Public Member Functions | |
GActionPath (GActionPathState *pState) | |
Takes ownership of pState. More... | |
~GActionPath () | |
double | critique () |
Computes the error of this path. More... | |
void | doAction (size_t nAction) |
Adds the specified action to the path and modifies the head state accordingly. More... | |
GActionPath * | fork () |
Makes a copy of this path. More... | |
size_t | length () |
Returns the number of actions in the path. More... | |
void | path (size_t nCount, size_t *pOutBuf) |
Gets the first nCount actions of the specified path. More... | |
GActionPathState * | state () |
Returns the head-state of the path. More... | |
Protected Attributes | |
size_t | m_nPathLen |
GActionPathState * | m_pHeadState |
GAction * | m_pLastAction |
GClasses::GActionPath::GActionPath | ( | GActionPathState * | pState | ) |
Takes ownership of pState.
GClasses::GActionPath::~GActionPath | ( | ) |
double GClasses::GActionPath::critique | ( | ) |
Computes the error of this path.
void GClasses::GActionPath::doAction | ( | size_t | nAction | ) |
Adds the specified action to the path and modifies the head state accordingly.
GActionPath* GClasses::GActionPath::fork | ( | ) |
Makes a copy of this path.
|
inline |
Returns the number of actions in the path.
void GClasses::GActionPath::path | ( | size_t | nCount, |
size_t * | pOutBuf | ||
) |
Gets the first nCount actions of the specified path.
|
inline |
Returns the head-state of the path.
|
protected |
|
protected |
|
protected |