32 #include "dcmtk/config/osconfig.h"
33 #include "dcmtk/ofstd/oftypes.h"
138 OFBool
empty()
const;
143 unsigned long card()
const;
DcmObject * objNodeValue
pointer to object referenced by this stack entry
DcmStack()
default constructor, creates empty stack
DcmObject * push(DcmObject *obj)
push new pointer do DcmObject instance on stack
OFBool operator==(const DcmStack &arg) const
comparison operator, needed for MSVC5.
DcmStackNode & operator=(const DcmStackNode &)
private undefined copy assignment operator
DcmStackNode(DcmObject *obj)
constructor.
OFBool operator<(const DcmStack &arg) const
dummy comparison operator, needed for MSVC5.
Abstract base class for most classes in module dcmdata.
DcmStackNode * topNode_
pointer to the upmost stack entry, NULL if empty
~DcmStack()
destructor, not virtual. Do not derive from this class.
DcmStackNode * link
pointer to next stack entry, NULL if last one
DcmObject * elem(const unsigned long number) const
returns n-th element from stack without removing it.
this class manages a stack of pointers to DcmObject instances.
void clear()
returns the stack to default-constructed state, i.e.
DcmObject * top() const
returns uppermost entry of stack without removing it.
DcmStack & operator=(const DcmStack &arg)
copy assignment operator.
helper class used by DcmStack.
DcmObject * pop()
removes uppermost entry from stack and returns it.
OFBool empty() const
checks if the stack is empty
unsigned long card() const
returns cardinality (number of entries) of the stack
DcmObject * value() const
return pointer maintained by this entry
~DcmStackNode()
destructor, non virtual.
unsigned long cardinality_
current cardinality of the stack