37 return numberOfElements == 0;
42 return numberOfElements >= rawSize;
46 unsigned int count()
const override
48 return numberOfElements;
62 volatile int numberOfElements;
75 if(count() >= rawSize) {
78 raw[numberOfElements++] = element;
84 if(numberOfElements > 0) {
85 return raw[--numberOfElements];
92 if(numberOfElements > 0) {
93 return raw[numberOfElements - 1];
100 nextIn = nextOut = numberOfElements = 0;
Definition: Countable.h:20
unsigned int count() const override
Definition: FILO.h:46
bool push(T element)
Definition: FILO.h:73
T peek() const
Definition: FILO.h:90
const int size
Definition: FILO.h:26
void flush()
Definition: FILO.h:98
FILO()
Definition: FILO.h:68
const T & operator[](unsigned int index) const override
Definition: FILO.h:51
bool empty() const
Definition: FILO.h:35
T pop()
Definition: FILO.h:82
bool full() const
Definition: FILO.h:40
T & operator[](unsigned int index) override
Definition: FILO.h:56