Base class for a vertex in the PlannerData structure. All derived classes must implement the clone and equivalence operators. It is assumed that each vertex in the PlannerData structure is unique (i.e. no duplicates allowed). More...
#include <PlannerData.h>
Public Member Functions | |
PlannerDataVertex (const State *st, int tag=0) | |
Constructor. Takes a state pointer and an optional integer tag. | |
PlannerDataVertex (const PlannerDataVertex &rhs) | |
Copy constructor. | |
virtual int | getTag (void) const |
Returns the integer tag associated with this vertex. | |
virtual void | setTag (int tag) |
Set the integer tag associated with this vertex. | |
virtual const State * | getState (void) const |
Retrieve the state associated with this vertex. | |
virtual PlannerDataVertex * | clone (void) const |
Return a clone of this object, allocated from the heap. | |
virtual bool | operator== (const PlannerDataVertex &rhs) const |
Equivalence operator. Return true if the state pointers are equal. | |
bool | operator!= (const PlannerDataVertex &rhs) const |
Returns true if this vertex is not equal to the argument. This is the complement of the == operator. | |
Protected Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Protected Attributes | |
const State * | state_ |
The state represented by this vertex. | |
int | tag_ |
A generic integer tag for this state. Not used for equivalence checking. | |
Friends | |
class | boost::serialization::access |
class | PlannerData |
class | PlannerDataStorage |
Base class for a vertex in the PlannerData structure. All derived classes must implement the clone and equivalence operators. It is assumed that each vertex in the PlannerData structure is unique (i.e. no duplicates allowed).
Definition at line 59 of file PlannerData.h.