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 86 of file ofstack.h.
OFBool OFStackBase::base_empty | ( | ) | const [inline] |
checks if the stack is empty
Definition at line 106 of file ofstack.h.
References head.
Referenced by OFStack< OFConfigFileCursor >::empty(), and ~OFStackBase().
size_t OFStackBase::base_size | ( | ) | const [inline] |
returns size of stack
Definition at line 111 of file ofstack.h.
References stackSize.
Referenced by OFStack< OFConfigFileCursor >::size().
OFStackLinkBase* OFStackBase::base_top | ( | ) | [inline] |
returns element on top of stack.
precondition: stack is not empty
Definition at line 116 of file ofstack.h.
References head.
Referenced by OFStack< OFConfigFileCursor >::top().
void OFStackBase::base_push | ( | OFStackLinkBase * | element | ) | [inline] |
pushes element onto stack.
element | pointer to element |
Definition at line 125 of file ofstack.h.
References head, OFStackLinkBase::next, and stackSize.
Referenced by OFStack< OFConfigFileCursor >::push().
void OFStackBase::base_pop | ( | ) | [inline] |
removes top element from stack.
precondition: stack not empty.
Definition at line 135 of file ofstack.h.
References head, OFStackLinkBase::next, and stackSize.
Referenced by OFStack< OFConfigFileCursor >::pop(), and ~OFStackBase().