Logo Search packages:      
Sourcecode: lttoolbox version File versions

Buffer< T > Class Template Reference

#include <Buffer.H>

List of all members.

Detailed Description

template<class T>
class Buffer< T >

Generic circular buffer class

Definition at line 32 of file Buffer.H.

Public Member Functions

T & add (void)
T & add (T const &value)
void back (unsigned int const posback)
 Buffer (Buffer const &b)
 Buffer (unsigned int const buf_size=2048)
unsigned int diffPostPos (unsigned int const postpos) const
unsigned int diffPrevPos (unsigned int const prevpos) const
unsigned int getPos () const
bool isEmpty () const
T & last () const
T & next ()
Bufferoperator= (Buffer const &b)
void setPos (unsigned int const newpos)
 ~Buffer ()

Private Member Functions

void copy (Buffer const &b)
void destroy ()

Private Attributes

T * buf
unsigned int currentpos
unsigned int lastpos
unsigned int size

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index