NeuroLab
Queue< T > Class Template Reference

Small queue. More...

Inheritance diagram for Queue< T >:

Public Member Functions

const T & operator[] (const int &index) const
 get data point More...
 

Detailed Description

template<typename T>
class Queue< T >

Small queue.

Class for storing basic data types in a simple queue. Push and pop work via << and >>, and += is defined. If you want something better, use the STL queue.

Member Function Documentation

template<typename T>
const T& Queue< T >::operator[] ( const int &  index) const
inline

get data point

Retrieve data.

Parameters
indexIndex of data to use. The index is always relative to the current position, and can be negative.