Larus glider flight sensor system 3.9.2024
Software-In-The-Loop test and validation system
Loading...
Searching...
No Matches
RingBuffer< datatype, size > Class Template Reference

ring buffer helper class (template) More...

#include <ringbuffer.h>

Public Member Functions

 RingBuffer (datatype initial_value=datatype())
 
datatype getValueAt (unsigned point)
 
datatype getPreviousAt (unsigned position)
 
datatype operator[] (unsigned position)
 
void pushValue (datatype value)
 
void setAllValues (const datatype &value)
 
unsigned GetSize (void)
 

Detailed Description

template<class datatype, unsigned size>
class RingBuffer< datatype, size >

ring buffer helper class (template)

Definition at line 29 of file ringbuffer.h.

Constructor & Destructor Documentation

◆ RingBuffer()

template<class datatype , unsigned size>
RingBuffer< datatype, size >::RingBuffer ( datatype  initial_value = datatype())
inline

Definition at line 32 of file ringbuffer.h.

Member Function Documentation

◆ getPreviousAt()

template<class datatype , unsigned size>
datatype RingBuffer< datatype, size >::getPreviousAt ( unsigned  position)
inline

Definition at line 44 of file ringbuffer.h.

◆ GetSize()

template<class datatype , unsigned size>
unsigned RingBuffer< datatype, size >::GetSize ( void  )
inline

Definition at line 68 of file ringbuffer.h.

◆ getValueAt()

template<class datatype , unsigned size>
datatype RingBuffer< datatype, size >::getValueAt ( unsigned  point)
inline

Definition at line 39 of file ringbuffer.h.

Referenced by RingBuffer< datatype, size >::operator[]().

◆ operator[]()

template<class datatype , unsigned size>
datatype RingBuffer< datatype, size >::operator[] ( unsigned  position)
inline

Definition at line 49 of file ringbuffer.h.

References RingBuffer< datatype, size >::getValueAt().

◆ pushValue()

template<class datatype , unsigned size>
void RingBuffer< datatype, size >::pushValue ( datatype  value)
inline

Definition at line 54 of file ringbuffer.h.

◆ setAllValues()

template<class datatype , unsigned size>
void RingBuffer< datatype, size >::setAllValues ( const datatype value)
inline

Definition at line 62 of file ringbuffer.h.


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