WaypointList< UserState > Class Template Reference

#include <WaypointList.h>

List of all members.

Public Member Functions

 WaypointList ()
size_t getNumWaypoints () const
void addWaypointToFront (UserState *waypoint)
void addWaypointToBack (const UserState &waypoint)
UserState * getWaypoint (size_t index) const

Private Attributes

deque< UserState * > mWaypoints


Detailed Description

template<typename UserState>
class WaypointList< UserState >

Definition at line 13 of file WaypointList.h.


Constructor & Destructor Documentation

template<typename UserState>
WaypointList< UserState >::WaypointList (  )  [inline]

Definition at line 24 of file WaypointList.h.

References WaypointList< UserState >::mWaypoints.

00025         {
00026                 mWaypoints.clear ();
00027         }


Member Function Documentation

template<typename UserState>
void WaypointList< UserState >::addWaypointToBack ( const UserState &  waypoint  )  [inline]

Definition at line 49 of file WaypointList.h.

00050         {
00051                 mWaypoints.push_back ( waypoint );
00052         }

template<typename UserState>
void WaypointList< UserState >::addWaypointToFront ( UserState *  waypoint  )  [inline]

Definition at line 42 of file WaypointList.h.

References WaypointList< UserState >::mWaypoints.

00043         {
00044                 mWaypoints.push_front ( waypoint );
00045         }

template<typename UserState>
size_t WaypointList< UserState >::getNumWaypoints (  )  const [inline]

Definition at line 35 of file WaypointList.h.

References WaypointList< UserState >::mWaypoints.

00036         {
00037                 return mWaypoints.size ();
00038         }

template<typename UserState>
UserState* WaypointList< UserState >::getWaypoint ( size_t  index  )  const [inline]

Definition at line 58 of file WaypointList.h.

00059         {
00060                 assert ( index < mWaypoints.size() );
00061                 return mWaypoints[index];
00062         }


Member Data Documentation

template<typename UserState>
deque< UserState* > WaypointList< UserState >::mWaypoints [private]

Definition at line 18 of file WaypointList.h.

Referenced by WaypointList< UserState >::addWaypointToFront(), WaypointList< UserState >::getNumWaypoints(), and WaypointList< UserState >::WaypointList().


The documentation for this class was generated from the following file:
Generated on Sun Jun 25 19:23:43 2006 for Valors End by  doxygen 1.4.7