DCMTK
Version 3.6.5
OFFIS DICOM Toolkit
|
iterator class for OFList. More...
Public Types | |
typedef T | value_type |
member typedef for T | |
typedef T * | pointer |
member typedef for T* | |
typedef T & | reference |
member typedef for T& | |
Public Member Functions | |
OFIterator () | |
default constructor. More... | |
OFIterator (const OFIterator< T > &x) | |
copy constructor | |
OFIterator< T > & | operator= (const OFIterator< T > &x) |
copy assignment operator | |
OFBool | operator== (const OFIterator< T > &x) const |
comparison of two iterators. More... | |
OFBool | operator!= (const OFIterator< T > &x) const |
comparison of two iterators. More... | |
T & | operator* () const |
dereferences the iterator. More... | |
T * | operator-> () const |
dereferences the iterator. More... | |
OFIterator< T > & | operator++ () |
moves the iterator to the next element of the list. More... | |
OFIterator< T > | operator++ (int) |
moves the iterator to the next element of the list. More... | |
OFIterator< T > & | operator-- () |
moves the iterator to the previous element of the list. More... | |
OFIterator< T > | operator-- (int) |
moves the iterator to the previous element of the list. More... | |
Protected Member Functions | |
OFIterator (OFListLinkBase *x) | |
constructor. More... | |
Protected Attributes | |
OFListLinkBase * | node |
list node referenced by the iterator | |
Friends | |
class | OFList< T > |
iterator class for OFList.
An iterator is a generalization of a pointer and allows a C++ program to work with different containers independently from their internal structure. Instances of this template class should be declared as OFListIterator(T) instead of OFListIterator<T>. This allows to re-map OFList to the STL list class if available.
|
inlineprotected |
constructor.
x | list node referenced by the iterator |
|
inline |
default constructor.
Creates an iterator referencing nothing. In general, iterators should always be copy-constructed in user code.
|
inline |
comparison of two iterators.
The iterators are equal if and only if they reference the same element, independent from the element values.
x | iterator to be compared |
References OFIterator< T >::node.
|
inline |
dereferences the iterator.
May only be called if iterator references a valid element of a list.
References OFIterator< T >::node.
|
inline |
moves the iterator to the next element of the list.
The list is circular: the first element follows after the end of the list. May only be called if iterator references a valid element or the end of a list.
References OFIterator< T >::node.
|
inline |
moves the iterator to the next element of the list.
The list is circular: the first element follows after the end of the list. May only be called if iterator references a valid element or the end of a list. This is the post-increment operator.
References OFIterator< T >::node.
|
inline |
moves the iterator to the previous element of the list.
The list is circular: the end of the list follows before the first element. May only be called if iterator references a valid element or the end of a list.
References OFIterator< T >::node.
|
inline |
moves the iterator to the previous element of the list.
The list is circular: the end of the list follows before the first element. May only be called if iterator references a valid element or the end of a list. This is the post-decremented operator.
References OFIterator< T >::node.
|
inline |
dereferences the iterator.
May only be called if iterator references a valid element of a list.
|
inline |
comparison of two iterators.
The iterators are equal if and only if they reference the same element, independent from the element values.
x | iterator to be compared |
References OFIterator< T >::node.