|
DCMTK
Version 3.6.2
OFFIS DICOM Toolkit
|
template stack class. More...
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. More... | |
| size_t | size () const |
| returns the number of elements on the stack More... | |
| T & | top () |
| returns a reference to the top element on the stack. More... | |
| const T & | top () const |
| returns a const reference to the top element on the stack. More... | |
| void | push (const T &x) |
| inserts a new element on top of the stack. More... | |
| void | pop () |
| removes the top element from the stack. More... | |
Private Member Functions | |
| int | copy (const OFStack< T > &x) |
| copy assignment of a stack. More... | |
Private Member Functions inherited from OFStackBase | |
| OFStackBase () | |
| default constructor | |
| virtual | ~OFStackBase () |
| destructor | |
| OFBool | base_empty () const |
| checks if the stack is empty More... | |
| size_t | base_size () const |
| returns size of stack More... | |
| OFStackLinkBase * | base_top () |
| returns element on top of stack. More... | |
| const OFStackLinkBase * | base_top () const |
| returns element on top of stack. More... | |
| void | base_push (OFStackLinkBase *element) |
| pushes element onto stack. More... | |
| void | base_pop () |
| removes top element from stack. More... | |
Additional Inherited Members | |
Private Attributes inherited from OFStackBase | |
| OFStackLinkBase * | head |
| pointer to top element of stack | |
| size_t | stackSize |
| size of stack | |
template stack class.
The interface is a subset of the STL stack class.
copy assignment of a stack.
| x | stack to be copied |
checks if the stack is empty.
Referenced by DSRTree< DSRDocumentTreeNode >::addNode(), DSRTreeNodeCursor< DSRDocumentTreeNode >::clearNodeCursorStack(), DSRTree< DSRDocumentTreeNode >::DSRTree(), DSRTree< DSRDocumentTreeNode >::extractNode(), DSRTreeNodeCursor< DSRDocumentTreeNode >::goUp(), DSRTreeNodeCursor< DSRDocumentTreeNode >::hasParentNode(), DSRTreeNodeCursor< DSRDocumentTreeNode >::iterate(), DSRTree< DSRDocumentTreeNode >::removeNode(), and DSRTree< DSRDocumentTreeNode >::replaceNode().
|
inline |
removes the top element from the stack.
This method may not be called if the stack is empty.
Referenced by DSRTreeNodeCursor< DSRDocumentTreeNode >::clearNodeCursorStack(), DSRTree< DSRDocumentTreeNode >::DSRTree(), DSRTree< DSRDocumentTreeNode >::extractNode(), DSRTreeNodeCursor< DSRDocumentTreeNode >::goUp(), DSRTreeNodeCursor< DSRDocumentTreeNode >::iterate(), and DSRTree< DSRDocumentTreeNode >::removeNode().
|
inline |
inserts a new element on top of the stack.
The value of the new element is copy constructed from the given argument.
| x | value to be pushed (copied) onto the stack |
Referenced by DSRTree< DSRDocumentTreeNode >::addNode(), DSRTree< DSRDocumentTreeNode >::DSRTree(), DSRTreeNodeCursor< DSRDocumentTreeNode >::goDown(), DSRTreeNodeCursor< DSRDocumentTreeNode >::iterate(), and DSRTree< DSRDocumentTreeNode >::removeNode().
|
inline |
returns the number of elements on the stack
Referenced by OFStack< OFConfigFileCursor >::copy(), and DSRTreeNodeCursor< DSRDocumentTreeNode >::getLevel().
|
inline |
returns a reference to the top element on the stack.
This method may not be called if the stack is empty.
Referenced by DSRTree< DSRDocumentTreeNode >::addNode(), DSRTree< DSRDocumentTreeNode >::DSRTree(), DSRTree< DSRDocumentTreeNode >::extractNode(), DSRTreeNodeCursor< DSRDocumentTreeNode >::getParentNode(), DSRTreeNodeCursor< DSRDocumentTreeNode >::goUp(), DSRTreeNodeCursor< DSRDocumentTreeNode >::iterate(), DSRTree< DSRDocumentTreeNode >::removeNode(), and DSRTree< DSRDocumentTreeNode >::replaceNode().
|
inline |
returns a const reference to the top element on the stack.
This method may not be called if the stack is empty.