Go to the documentation of this file.
   30 #ifndef MATH_UTIL_GENERIC_RING_BUFFER_H_ 
   31 #define MATH_UTIL_GENERIC_RING_BUFFER_H_ 
   35 #define GEN_RING_BUFF_DEFAULT_NUM_ELEMENTS 16 
  100     virtual T* 
get(
int i = 0)
 const 
  104       return (&
HEAD[j].Data);
 
  113       return (&
HEAD[i].Data);
 
  130       return (&
HEAD[j].Data);
 
  146       if (this->
size() == 0)
 
  172       temp = 
new ctr[std::max(2, NumElements2Alloc)];
 
  216       for (
int i = 0; i < Num2Copy; i++)
 
  218         dest[i].
Data = *(this->
get(i));
 
  251       HEAD = 
new ctr[std::max(NumElems, 2)];
 
  281       this->NumElements = 0;
 
  288         this->
load(*(src[i]));
 
  294 #endif  // MATH_UTIL_GENERIC_RING_BUFFER_H_ 
  
void push(const T &newElem)
virtual T * operator[](int i)
GenRingBuffer(const GenRingBuffer< T > &src)
bool copy_elems(ctr *dest, int MaxNum2Copy)
virtual T * get(int i=0) const
#define GEN_RING_BUFF_DEFAULT_NUM_ELEMENTS
GenRingBuffer(int NumElements2Alloc)
ctr * alloc_mem(int NumElems)
T * getTail(int i=0) const
void ResizeBuffer(int newSize)
void load(const T &newElem)
void copyRB(GenRingBuffer< T > &src)
void realloc_mem(int NumElements2Alloc)
GenRingBuffer< T > & operator=(const GenRingBuffer< T > &src)
swri_math_util
Author(s): Marc Alban
autogenerated on Thu Feb 27 2025 03:33:58