Skip to content

Class eva::RingBuffer

template <typename T, unsigned char N>

ClassList > eva > RingBuffer

Fixed-capacity circular ring buffer. More...

  • #include <evaRingBuffer.h>

Public Functions

Type Name
RingBuffer ()
void clear ()
T get (unsigned char index) const
bool isEmpty () const
bool isFull () const
void put (const T & value)
unsigned char size () const

Detailed Description

Template parameters:

  • T Element type
  • N Buffer capacity

Public Functions Documentation

function RingBuffer

inline eva::RingBuffer::RingBuffer () 

function clear

inline void eva::RingBuffer::clear () 

function get

inline T eva::RingBuffer::get (
    unsigned char index
) const

function isEmpty

inline bool eva::RingBuffer::isEmpty () const

function isFull

inline bool eva::RingBuffer::isFull () const

function put

inline void eva::RingBuffer::put (
    const T & value
) 

function size

inline unsigned char eva::RingBuffer::size () const


The documentation for this class was generated from the following file src/evaRingBuffer.h