#include <generic_ring_buffer.h>
Classes | |
struct | ctr |
Public Member Functions | |
void | clear () |
GenRingBuffer () | |
GenRingBuffer (const GenRingBuffer< T > &src) | |
GenRingBuffer (int NumElements2Alloc) | |
virtual T * | get (int i=0) const |
T * | getLoad () const |
T * | getRaw (int i) const |
T * | getTail (int i=0) const |
bool | indexValid (int i) |
void | load (const T &newElem) |
void | load1 (T newElem) |
int | MaxSize () const |
GenRingBuffer< T > & | operator= (const GenRingBuffer< T > &src) |
virtual T * | operator[] (int i) |
T * | pop () |
void | ResizeBuffer (int newSize) |
int | size () const |
virtual | ~GenRingBuffer () |
Protected Member Functions | |
void | realloc_mem (int NumElements2Alloc) |
Private Member Functions | |
ctr * | alloc_mem (int NumElems) |
bool | copy_elems (ctr *dest, int MaxNum2Copy) |
void | copyRB (GenRingBuffer< T > &src) |
void | incConsumePtr () |
void | incLoadPtr () |
void | init_array () |
void | push (const T &newElem) |
Private Attributes | |
ctr * | consumePtr |
ctr * | HEAD |
ctr * | loadPtr |
int | MaxNumElements |
int | NumElements |
ctr * | TAIL |
ctr * | temp |
Definition at line 43 of file generic_ring_buffer.h.
|
inline |
Definition at line 47 of file generic_ring_buffer.h.
|
inlineexplicit |
Definition at line 54 of file generic_ring_buffer.h.
|
inline |
Definition at line 61 of file generic_ring_buffer.h.
|
inlinevirtual |
Definition at line 75 of file generic_ring_buffer.h.
|
inlineprivate |
Definition at line 249 of file generic_ring_buffer.h.
|
inline |
Definition at line 164 of file generic_ring_buffer.h.
|
inlineprivate |
Definition at line 204 of file generic_ring_buffer.h.
|
inlineprivate |
Definition at line 271 of file generic_ring_buffer.h.
|
inlinevirtual |
Definition at line 100 of file generic_ring_buffer.h.
|
inline |
Definition at line 116 of file generic_ring_buffer.h.
|
inline |
Definition at line 107 of file generic_ring_buffer.h.
|
inline |
Definition at line 122 of file generic_ring_buffer.h.
|
inlineprivate |
Definition at line 244 of file generic_ring_buffer.h.
|
inlineprivate |
Definition at line 239 of file generic_ring_buffer.h.
|
inline |
Definition at line 159 of file generic_ring_buffer.h.
|
inlineprivate |
Definition at line 259 of file generic_ring_buffer.h.
|
inline |
Definition at line 133 of file generic_ring_buffer.h.
|
inline |
Definition at line 138 of file generic_ring_buffer.h.
|
inline |
Definition at line 90 of file generic_ring_buffer.h.
|
inline |
Definition at line 69 of file generic_ring_buffer.h.
|
inlinevirtual |
Definition at line 95 of file generic_ring_buffer.h.
|
inline |
Definition at line 143 of file generic_ring_buffer.h.
|
inlineprivate |
Definition at line 223 of file generic_ring_buffer.h.
|
inlineprotected |
Definition at line 170 of file generic_ring_buffer.h.
|
inline |
Definition at line 80 of file generic_ring_buffer.h.
|
inline |
Definition at line 85 of file generic_ring_buffer.h.
|
private |
Definition at line 198 of file generic_ring_buffer.h.
|
private |
Definition at line 195 of file generic_ring_buffer.h.
|
private |
Definition at line 197 of file generic_ring_buffer.h.
|
private |
Definition at line 201 of file generic_ring_buffer.h.
|
private |
Definition at line 200 of file generic_ring_buffer.h.
|
private |
Definition at line 196 of file generic_ring_buffer.h.
|
private |
Definition at line 194 of file generic_ring_buffer.h.