Inheritance diagram for OFStackBase:
Public Member Functions | |
OFStackBase () | |
default constructor | |
virtual | ~OFStackBase () |
destructor | |
OFBool | base_empty () const |
checks if the stack is empty | |
size_t | base_size () const |
returns size of stack | |
OFStackLinkBase * | base_top () |
returns element on top of stack. | |
void | base_push (OFStackLinkBase *element) |
pushes element onto stack. | |
void | base_pop () |
removes top element from stack. | |
Protected Attributes | |
OFStackLinkBase * | head |
pointer to top element of stack | |
size_t | stackSize |
size of stack | |
Private Member Functions | |
OFStackBase (const OFStackBase &) | |
private undefined copy constructor | |
OFStackBase & | operator= (const OFStackBase &) |
private undefined copy assignment operator |
Implicitly used by OFStack, should not be called by users.
Definition at line 91 of file ofstack.h.
|
checks if the stack is empty
Definition at line 111 of file ofstack.h. References head. Referenced by OFStack< OFConfigFileCursor >::empty(), and ~OFStackBase(). |
|
removes top element from stack. precondition: stack not empty. Definition at line 140 of file ofstack.h. References head, OFStackLinkBase::next, and stackSize. Referenced by OFStack< OFConfigFileCursor >::pop(), and ~OFStackBase(). |
|
pushes element onto stack.
Definition at line 130 of file ofstack.h. References head, OFStackLinkBase::next, and stackSize. Referenced by OFStack< OFConfigFileCursor >::push(). |
|
returns size of stack
Definition at line 116 of file ofstack.h. References stackSize. Referenced by OFStack< OFConfigFileCursor >::size(). |
|
returns element on top of stack. precondition: stack is not empty Definition at line 121 of file ofstack.h. References head. Referenced by OFStack< OFConfigFileCursor >::top(). |