32 #include "dcmtk/config/osconfig.h" 34 #include "dcmtk/ofstd/ofcast.h" 35 #include "dcmtk/ofstd/oftypes.h" 37 #define INCLUDE_CSTDDEF 38 #define INCLUDE_CSTDLIB 39 #include "dcmtk/ofstd/ofstdinc.h" 40 #include "dcmtk/dcmdata/dcobject.h" 43 const unsigned long DCM_EndOfListIndex = OFstatic_cast(
unsigned long, -1L);
132 E_ListPos pos = ELP_next );
143 DcmObject *
get( E_ListPos pos = ELP_atpos );
150 DcmObject *seek( E_ListPos pos = ELP_next );
157 DcmObject *seek_to(
unsigned long absolute_position);
163 void deleteAllElements();
166 inline unsigned long card()
const {
return cardinality; }
169 inline OFBool
empty(
void)
const {
return firstNode == NULL; }
172 inline OFBool
valid(
void)
const {
return currentNode != NULL; }
DcmListNode * currentNode
pointer to current node in list
helper class maintaining an entry in a DcmList double-linked list
OFBool empty(void) const
return true if list is empty, false otherwise
Abstract base class for most classes in module dcmdata.
DcmObject * objNodeValue
pointer to DcmObject instance maintained by this list entry
unsigned long cardinality
number of elements in list
DcmObject * value()
return pointer to object maintained by this list node
OFBool valid(void) const
return true if current node exists, false otherwise
unsigned long card() const
return cardinality of list
DcmListNode * lastNode
pointer to last node in list
double-linked list class that maintains pointers to DcmObject instances.
DcmListNode & operator=(const DcmListNode &)
private undefined copy assignment operator
DcmListNode * firstNode
pointer to first node in list
DcmListNode * prevNode
pointer to previous node in double-linked list
DcmListNode(DcmObject *obj)
constructor
DcmListNode * nextNode
pointer to next node in double-linked list