A FIFO stack based on a singly-linked list. Operations are push(), pop(), top(), bottom() and empty(). More...
#include <OpenFOAM/FIFOStack.H>
A FIFO stack based on a singly-linked list. Operations are push(), pop(), top(), bottom() and empty().
Definition at line 51 of file FIFOStack.H.
Inheritance diagram for FIFOStack< T >:
Collaboration diagram for FIFOStack< T >:Public Member Functions | |
| FIFOStack () | |
| Construct null.
| |
| FIFOStack (T a) | |
| Construct given initial T.
| |
| FIFOStack (Istream &is) | |
| Construct from Istream.
| |
| T | top () const |
| Return a copy of the top element.
| |
| T | bottom () const |
| Return a copy of the bottom element.
| |
| void | push (const T &a) |
| Push an element onto the stack.
| |
| T | pop () |
| Pop the bottom element off the stack.
| |
| FIFOStack | ( | ) | [inline]
|
Construct null.
Definition at line 61 of file FIFOStack.H.
| FIFOStack | ( | T | a ) | [inline]
|
Construct given initial T.
Definition at line 65 of file FIFOStack.H.
Construct from Istream.
Definition at line 71 of file FIFOStack.H.
| T top | ( | ) | const [inline]
|
Return a copy of the top element.
Definition at line 82 of file FIFOStack.H.
| T bottom | ( | ) | const [inline]
|
Return a copy of the bottom element.
Definition at line 88 of file FIFOStack.H.
| void push | ( | const T & | a ) | [inline]
|
Push an element onto the stack.
Definition at line 97 of file FIFOStack.H.
| T pop | ( | ) | [inline]
|
Pop the bottom element off the stack.
Definition at line 103 of file FIFOStack.H.