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 201 of file ofstack.h.
|
copy assignment of a stack.
Definition at line 261 of file ofstack.h. Referenced by OFStack< OFConfigFileCursor >::OFStack(), and OFStack< OFConfigFileCursor >::operator=(). |
|
checks if the stack is empty.
|
|
removes the top element from the stack. This method may not be called if the stack is empty. |
|
inserts a new element on top of the stack. The value of the new element is copy constructed from the given argument.
|
|
returns the number of elements on the stack
Definition at line 230 of file ofstack.h. Referenced by OFStack< OFConfigFileCursor >::copy(). |
|
returns a reference to the top element on the stack. This method may not be called if the stack is empty.
|