Pathfinder::AStarGenericCached< NODETYPE, DESTCOST, GETNEIGHBORS, COSTTYPE >::AddNeighborFunctor Class Reference

Functor passed to the IGetNeighbors functor. More...

#include <pathfinderastargenericcached.h>

List of all members.

Public Member Functions

void operator() (const NODETYPE &neighbor, const long neighborindex, const COSTTYPE &movecost)
 Adds a directly reachable neighbor state.


Detailed Description

template<class NODETYPE, class DESTCOST, class GETNEIGHBORS, class COSTTYPE = double>
class Pathfinder::AStarGenericCached< NODETYPE, DESTCOST, GETNEIGHBORS, COSTTYPE >::AddNeighborFunctor

Functor passed to the IGetNeighbors functor.

Member Function Documentation

template<class NODETYPE , class DESTCOST , class GETNEIGHBORS , class COSTTYPE = double>
void Pathfinder::AStarGenericCached< NODETYPE, DESTCOST, GETNEIGHBORS, COSTTYPE >::AddNeighborFunctor::operator() ( const NODETYPE &  neighbor,
const long  neighborindex,
const COSTTYPE &  movecost 
) [inline]

Adds a directly reachable neighbor state.

Parameters:
neighbor The neighbor state
neighborindex The index of the neighbor state
movecost The cost of moving from the parent state to this state


The documentation for this class was generated from the following file:

Generated on Mon Dec 29 19:08:11 2008 by  doxygen 1.5.7.1