Console::CycleAction< T > Class Template Reference

#include <Action.h>

Inheritance diagram for Console::CycleAction< T >:

Console::Action List of all members.

Public Member Functions

 CycleAction (const std::vector< T > &v)
getCurrent ()
std::string run (const std::vector< std::string > &)

Detailed Description

template<typename T>
class Console::CycleAction< T >

Specialization of Action which cycles an index to a vector, offering functionality to retrieve the object at the given index.


Constructor & Destructor Documentation

template<typename T>
Console::CycleAction< T >::CycleAction const std::vector< T > &  v  )  [inline]
 

Initialize the CycleAction with the given vector.

Parameters:
v the vector to cycle through.


Member Function Documentation

template<typename T>
T Console::CycleAction< T >::getCurrent  )  [inline]
 

Get the object at the current vector index.

Returns:
the object at the current vector index.

template<typename T>
std::string Console::CycleAction< T >::run const std::vector< std::string > &   )  [inline, virtual]
 

Cycle the index.

Returns:
a string describing the current index.

Implements Console::Action.


The documentation for this class was generated from the following file:
Generated on Fri Jun 16 08:42:48 2006 for GPU Thesis by  doxygen 1.4.6-NO