OFStackBase Class Reference

non-template base class for OFStack. More...

Inheritance diagram for OFStackBase:

OFStack< T > List of all members.

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
OFStackLinkBasebase_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

OFStackLinkBasehead
 pointer to top element of stack
size_t stackSize
 size of stack

Private Member Functions

 OFStackBase (const OFStackBase &)
 private undefined copy constructor
OFStackBaseoperator= (const OFStackBase &)
 private undefined copy assignment operator

Detailed Description

non-template base class for OFStack.

Implicitly used by OFStack, should not be called by users.

Definition at line 86 of file ofstack.h.


Member Function Documentation

OFBool OFStackBase::base_empty (  )  const [inline]

checks if the stack is empty

Returns:
true if stack is emtpy, false otherwise

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

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.

Parameters:
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().


The documentation for this class was generated from the following file:


Generated on 6 Jan 2011 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.5.1