36 unsigned int count()
const override 38 return numberOfElements;
42 volatile int numberOfElements;
55 if(
count() >= rawSize) {
58 raw[numberOfElements++] = element;
64 if(numberOfElements > 0) {
65 return raw[--numberOfElements];
72 if(numberOfElements > 0) {
73 return raw[numberOfElements - 1];
80 nextIn = nextOut = numberOfElements = 0;
void flush()
Definition: FILO.h:78
unsigned int count() const override
Definition: FILO.h:36
Definition: Countable.h:19
FILO()
Definition: FILO.h:48
T peek() const
Definition: FILO.h:70
bool push(T element)
Definition: FILO.h:53
const int size
Definition: FILO.h:26
T pop()
Definition: FILO.h:62