GClasses

GClasses::GActionPath Class Reference

#include <GOptimizer.h>

List of all members.

Public Member Functions

 GActionPath (GActionPathState *pState)
 Takes ownership of pState.
 ~GActionPath ()
GActionPathfork ()
 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.
GActionPathStatestate ()
 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

GActionPathStatem_pHeadState
GAction * m_pLastAction
size_t m_nPathLen

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