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 );
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
DcmObject * append(DcmObject *obj)
insert object at end of list
Abstract base class for most classes in module dcmdata.
DcmObject * objNodeValue
pointer to DcmObject instance maintained by this list entry
DcmObject * prepend(DcmObject *obj)
insert object at start of list
unsigned long cardinality
number of elements in list
DcmObject * seek_to(unsigned long absolute_position)
seek within element in list to given element index (i.e.
DcmObject * value()
return pointer to object maintained by this list node
DcmObject * insert(DcmObject *obj, E_ListPos pos=ELP_next)
insert object relative to current position and indicator
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
DcmList & operator=(const DcmList &)
private undefined copy constructor
DcmObject * seek(E_ListPos pos=ELP_next)
seek within element in list to given position (i.e.
void deleteAllElements()
Remove and delete all elements from 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