CyclicList< T > Class Template Reference

This template class defines a cyclic memory. More...

#include <CyclicList.h>

List of all members.

Public Member Functions

 CyclicList (int p_size)
 Standard constructor.
virtual ~CyclicList ()
 Standard desstructor.
int moveOn ()
 Moves to the next position.
T & operator[] (int p_pos)
 Access operator for elements.

Public Attributes

std::vector< T > myVec
 Holds the internal data.
int myOffset
 Holds the current first-position.


Detailed Description

template<class T>
class CyclicList< T >

This template class defines a cyclic memory.

Definition at line 30 of file CyclicList.h.


Constructor & Destructor Documentation

template<class T>
CyclicList< T >::CyclicList ( int  p_size  )  [inline]

Standard constructor.

Definition at line 36 of file CyclicList.h.

template<class T>
virtual CyclicList< T >::~CyclicList (  )  [inline, virtual]

Standard desstructor.

Definition at line 46 of file CyclicList.h.


Member Function Documentation

template<class T>
int CyclicList< T >::moveOn (  )  [inline]

Moves to the next position.

Returns:
0 for success.

Definition at line 55 of file CyclicList.h.

Referenced by Level::run().

template<class T>
T& CyclicList< T >::operator[] ( int  p_pos  )  [inline]

Access operator for elements.

Definition at line 65 of file CyclicList.h.


Member Data Documentation

template<class T>
std::vector<T> CyclicList< T >::myVec

Holds the internal data.

Definition at line 73 of file CyclicList.h.

Referenced by CyclicList< std::list< EventInterface * > >::CyclicList(), CyclicList< std::list< EventInterface * > >::moveOn(), and CyclicList< std::list< EventInterface * > >::operator[]().

template<class T>
int CyclicList< T >::myOffset

Holds the current first-position.

Definition at line 78 of file CyclicList.h.

Referenced by CyclicList< std::list< EventInterface * > >::CyclicList(), CyclicList< std::list< EventInterface * > >::moveOn(), and CyclicList< std::list< EventInterface * > >::operator[]().


The documentation for this class was generated from the following file:
Generated on Tue Jul 17 22:02:22 2007 for C0re by  doxygen 1.5.2