Go to the documentation of this file.
37 unsigned int count()
const override
49 return (
count() >= rawSize);
80 raw[nextIn] = element;
82 if(++nextIn >= rawSize) {
93 if(++nextOut >= rawSize)
105 nextIn = nextOut = numberOfElements = 0;
int nextOut
Definition: FIFO.h:65
bool enqueue(T element)
Definition: FIFO.h:74
bool empty() const
Definition: FIFO.h:42
T dequeue()
Definition: FIFO.h:88
T raw[rawSize]
Definition: FIFO.h:66
T & operator[](unsigned int index) override
Definition: FIFO.h:57
unsigned int count() const override
Definition: FIFO.h:37
Definition: Countable.h:19
void flush()
Definition: FIFO.h:103
FIFO()
Definition: FIFO.h:69
const int size
Definition: FIFO.h:27
int nextIn
Definition: FIFO.h:64
T peek() const
Definition: FIFO.h:98
bool full() const
Definition: FIFO.h:47
volatile int numberOfElements
Definition: FIFO.h:63
const T & operator[](unsigned int index) const override
Definition: FIFO.h:52