Public Member Functions | |
| DcmQuantHistogramItemList () | |
| constructor | |
| ~DcmQuantHistogramItemList () | |
| destructor. Destroys all objects pointed to by list. | |
| void | moveto (DcmQuantHistogramItemPointer *array, unsigned long &counter, unsigned long numcolors) |
| this method moves the contents of this list into the given array. | |
| int | lookup (const DcmQuantPixel &colorP) |
| searches the list for an entry that equals the given pixel value. | |
| unsigned long | add (const DcmQuantPixel &colorP) |
| adds the given pixel to the list. | |
| void | push_front (const DcmQuantPixel &colorP, int value) |
| inserts a new DcmQuantHistogramItem at the beginning of the list. | |
| size_t | size () const |
| returns current number of objects in the list | |
Private Member Functions | |
| OFListIterator (DcmQuantHistogramItem *) first | |
| temporary iterator used in various methods; declared here for efficiency reasons only. | |
| OFListIterator (DcmQuantHistogramItem *) last | |
| constant iterator which always contains list_.end(); declared here for efficiency reasons only. | |
Private Attributes | |
| OFList< DcmQuantHistogramItem * > | list_ |
| list of (pointers to) DcmQuantHistogramItem objects | |
It maintains a list of DcmQuantHistogramItem objects.
Definition at line 46 of file diqthitl.h.
|
|
adds the given pixel to the list. If the pixel is already contained in the list, it's integer value (counter) is increased and 0 is returned. Otherwise, a new entry with a counter of 1 is created and 1 is returned.
Definition at line 89 of file diqthitl.h. References OFList< T >::begin(), and list_. |
|
|
searches the list for an entry that equals the given pixel value. If found, the integer value assigned to that pixel is returned, otherwise returns -1.
Definition at line 71 of file diqthitl.h. References OFList< T >::begin(), and list_. Referenced by DcmQuantColorHashTable::lookup(). |
|
||||||||||||||||
|
this method moves the contents of this list into the given array. The list becomes empty if the array is large enough to contain all list members.
|
|
||||||||||||
|
inserts a new DcmQuantHistogramItem at the beginning of the list.
Definition at line 111 of file diqthitl.h. Referenced by DcmQuantColorHashTable::add(). |