GClasses
GClasses::GActionPath Class Reference

#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...
 
GActionPathfork ()
 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...
 
GActionPathStatestate ()
 Returns the head-state of the path. More...
 

Protected Attributes

size_t m_nPathLen
 
GActionPathStatem_pHeadState
 
GAction * m_pLastAction
 

Constructor & Destructor Documentation

GClasses::GActionPath::GActionPath ( GActionPathState pState)

Takes ownership of pState.

GClasses::GActionPath::~GActionPath ( )

Member Function Documentation

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.

Member Data Documentation

size_t GClasses::GActionPath::m_nPathLen
protected
GActionPathState* GClasses::GActionPath::m_pHeadState
protected
GAction* GClasses::GActionPath::m_pLastAction
protected