|
|
|
FIFOStack Class Template ReferenceInheritance diagram for FIFOStack:![]() ![]() Detailed Descriptiontemplate<class 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. | |
| bool | empty () const |
| Is the stack empty. | |
| void | push (const T &a) |
| Push an element onto the stack. | |
| T | pop () |
| Pop the bottom element. | |
| FIFOStack | ( | ) | [inline] |
| FIFOStack | ( | T | a | ) | [inline] |
| T top | ( | ) | const [inline] |
| T bottom | ( | ) | const [inline] |
| bool empty | ( | ) | const [inline] |
| void push | ( | const T & | a | ) | [inline] |
| T pop | ( | ) | [inline] |