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