Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members
RingBuffer< T > Class Template Reference
A RingBuffer for non pointers only <short description="">. More...
#include <RingBuffer.hpp>
Public Member Functions | |
RingBuffer (int siz) | |
~RingBuffer () | |
doesn't free any memory. | |
void | put (T &elem, int key) |
T | get (int key, bool *found) |
returns the element and removes it from the RingBuffer. |
Detailed Description
template<class T>
class RingBuffer< T >
A RingBuffer for non pointers only <short description="">.
- Author:
- Peter Schojer
- Version:
- Id
- RingBuffer.hpp,v 1.4 2004/06/02 14:17:22 pschojer Exp
Definition at line 57 of file RingBuffer.hpp.
Constructor & Destructor Documentation
|
doesn't free any memory. NEVER use this for pointers! Use PointerRingBuffer Definition at line 75 of file RingBuffer.hpp.
|
Member Function Documentation
|
returns the element and removes it from the RingBuffer. Searches form the oldest element to the newest. For optimal performance get Elements in the order you inserted them! If no element is found,
|
The documentation for this class was generated from the following file: