#include <FIFOLinkedList.h>
Believed to be thread-safe when used by two threads, one pushing and the other popping. Does not support iteration.
Definition at line 58 of file FIFOLinkedList.h.
Public Member Functions | |
| virtual bool | canPop () const |
| returns whether the head element is non-null | |
| virtual uint64_t | size () const |
| returns the number of elements in the list | |
| virtual bool | empty () const |
| returns whether the list is empty (is this !canPop?) | |
| virtual T & | front () const |
| returns a reference to the first element | |
| virtual T & | back () const |
| returns a reference to the last element | |
| virtual void | push (const T &v) |
| adds a new element to the end | |
| virtual void | pop () |
| removes the first element | |
| virtual void | clear () |
| removes all elements | |
1.5.5