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