dtAI::AStarConfig< _DataType, _CostType, _ContainerType > Class Template Reference

AStarConfig contains the basic data that AStar operates on. More...

#include <astarconfig.h>

List of all members.

Public Types

typedef _DataType data_type
typedef _CostType cost_type
typedef _ContainerType container

Public Member Functions

 AStarConfig ()
 AStarConfig (data_type pFrom, data_type pTo)
void Reset (data_type pFrom, data_type pTo)
 these are for usage by AStar.h and should not be used by clients of AStar.h
void Reset (data_type pFrom, const std::vector< data_type > &pTo)
bool AtFinish (data_type pTest)
data_type Start ()
data_type Finish ()

Public Attributes

container mResult
 the resulting path, and the total cost to it
cost_type mTotalCost
unsigned int mTotalNodesExplored
 these are used as statistical output
double mTotalTime
unsigned int mNumIterations
unsigned int mMaxNodesExplored
 these are the max values per iteration and should be set for dealing with constraints
double mMaxTime
cost_type mMaxCost
data_type mStart
 these are for usage by AStar.h and should not be used by clients of AStar.h
std::vector< data_typemFinish
unsigned int mNodesExplored
 these are for usage by AStar.h and should not be used by clients of AStar.h
double mTimeSpent
 these are for usage by AStar.h and should not be used by clients of AStar.h


Detailed Description

template<class _DataType, class _CostType, class _ContainerType>
class dtAI::AStarConfig< _DataType, _CostType, _ContainerType >

AStarConfig contains the basic data that AStar operates on.

See also:
AStar.h

Member Typedef Documentation

template<class _DataType, class _CostType, class _ContainerType>
typedef _DataType dtAI::AStarConfig< _DataType, _CostType, _ContainerType >::data_type

template<class _DataType, class _CostType, class _ContainerType>
typedef _CostType dtAI::AStarConfig< _DataType, _CostType, _ContainerType >::cost_type

template<class _DataType, class _CostType, class _ContainerType>
typedef _ContainerType dtAI::AStarConfig< _DataType, _CostType, _ContainerType >::container


Constructor & Destructor Documentation

template<class _DataType, class _CostType, class _ContainerType>
dtAI::AStarConfig< _DataType, _CostType, _ContainerType >::AStarConfig (  )  [inline]

template<class _DataType, class _CostType, class _ContainerType>
dtAI::AStarConfig< _DataType, _CostType, _ContainerType >::AStarConfig ( data_type  pFrom,
data_type  pTo 
) [inline]


Member Function Documentation

template<class _DataType, class _CostType, class _ContainerType>
void dtAI::AStarConfig< _DataType, _CostType, _ContainerType >::Reset ( data_type  pFrom,
data_type  pTo 
) [inline]

these are for usage by AStar.h and should not be used by clients of AStar.h

template<class _DataType, class _CostType, class _ContainerType>
void dtAI::AStarConfig< _DataType, _CostType, _ContainerType >::Reset ( data_type  pFrom,
const std::vector< data_type > &  pTo 
) [inline]

template<class _DataType, class _CostType, class _ContainerType>
bool dtAI::AStarConfig< _DataType, _CostType, _ContainerType >::AtFinish ( data_type  pTest  )  [inline]

template<class _DataType, class _CostType, class _ContainerType>
data_type dtAI::AStarConfig< _DataType, _CostType, _ContainerType >::Start (  )  [inline]

template<class _DataType, class _CostType, class _ContainerType>
data_type dtAI::AStarConfig< _DataType, _CostType, _ContainerType >::Finish (  )  [inline]


Member Data Documentation

template<class _DataType, class _CostType, class _ContainerType>
container dtAI::AStarConfig< _DataType, _CostType, _ContainerType >::mResult

the resulting path, and the total cost to it

template<class _DataType, class _CostType, class _ContainerType>
cost_type dtAI::AStarConfig< _DataType, _CostType, _ContainerType >::mTotalCost

template<class _DataType, class _CostType, class _ContainerType>
unsigned int dtAI::AStarConfig< _DataType, _CostType, _ContainerType >::mTotalNodesExplored

these are used as statistical output

template<class _DataType, class _CostType, class _ContainerType>
double dtAI::AStarConfig< _DataType, _CostType, _ContainerType >::mTotalTime

template<class _DataType, class _CostType, class _ContainerType>
unsigned int dtAI::AStarConfig< _DataType, _CostType, _ContainerType >::mNumIterations

template<class _DataType, class _CostType, class _ContainerType>
unsigned int dtAI::AStarConfig< _DataType, _CostType, _ContainerType >::mMaxNodesExplored

these are the max values per iteration and should be set for dealing with constraints

template<class _DataType, class _CostType, class _ContainerType>
double dtAI::AStarConfig< _DataType, _CostType, _ContainerType >::mMaxTime

template<class _DataType, class _CostType, class _ContainerType>
cost_type dtAI::AStarConfig< _DataType, _CostType, _ContainerType >::mMaxCost

template<class _DataType, class _CostType, class _ContainerType>
data_type dtAI::AStarConfig< _DataType, _CostType, _ContainerType >::mStart

these are for usage by AStar.h and should not be used by clients of AStar.h

template<class _DataType, class _CostType, class _ContainerType>
std::vector<data_type> dtAI::AStarConfig< _DataType, _CostType, _ContainerType >::mFinish

template<class _DataType, class _CostType, class _ContainerType>
unsigned int dtAI::AStarConfig< _DataType, _CostType, _ContainerType >::mNodesExplored

these are for usage by AStar.h and should not be used by clients of AStar.h

template<class _DataType, class _CostType, class _ContainerType>
double dtAI::AStarConfig< _DataType, _CostType, _ContainerType >::mTimeSpent

these are for usage by AStar.h and should not be used by clients of AStar.h


http://www.delta3d.org
2.0.0 generated 14 Feb 2008