Inheritance diagram for OFStack< T >:

Public Member Functions | |
| OFStack () | |
| Default constructor. | |
| OFStack (const OFStack< T > &x) | |
| copy constructor | |
| OFStack< T > & | operator= (const OFStack< T > &x) |
| Assignment operator. | |
| OFBool | empty () const |
| checks if the stack is empty. | |
| size_t | size () const |
| returns the number of elements on the stack | |
| T & | top () |
| returns a reference to the top element on the stack. | |
| void | push (const T &x) |
| inserts a new element on top of the stack. | |
| void | pop () |
| removes the top element from the stack. | |
Private Member Functions | |
| int | copy (const OFStack< T > &x) |
| copy assignment of a stack. | |
The interface is a subset of the STL stack class.
Definition at line 196 of file ofstack.h.
| OFBool OFStack< T >::empty | ( | void | ) | const [inline] |
| size_t OFStack< T >::size | ( | ) | const [inline] |
returns the number of elements on the stack
Definition at line 225 of file ofstack.h.
Referenced by OFStack< OFConfigFileCursor >::copy().
| T& OFStack< T >::top | ( | ) | [inline] |
| void OFStack< T >::push | ( | const T & | x | ) | [inline] |
| void OFStack< T >::pop | ( | ) | [inline] |
copy assignment of a stack.
| x | stack to be copied |
Definition at line 256 of file ofstack.h.
Referenced by OFStack< OFConfigFileCursor >::OFStack(), and OFStack< OFConfigFileCursor >::operator=().