a hash table of pointers to DcmDictEntry objects
More...
|
| DcmHashDict (int hashTabLen=DCMHASHDICT_DEFAULT_HASHSIZE) |
| constructor
|
|
| ~DcmHashDict () |
| destructor
|
|
int | size () const |
| counts total number of entries
|
|
void | clear () |
| clears the hash table of all entries
|
|
void | put (DcmDictEntry *e) |
| inserts an entry into hash table (deletes old entry if present)
|
|
const DcmDictEntry * | get (const DcmTagKey &key, const char *privCreator) const |
| hash table lookup for the given tag key and private creator name.
|
|
void | del (const DcmTagKey &k, const char *privCreator) |
| deletes the entry for the given tag and private creator
|
|
DcmHashDictIterator | begin () const |
| returns iterator to start of hash table
|
|
DcmHashDictIterator | end () const |
| returns iterator to end of hash table
|
|
STD_NAMESPACE ostream & | loadSummary (STD_NAMESPACE ostream &out) |
| prints some information about hash table bucket utilization
|
|
|
class | DcmHashDictIterator |
|
a hash table of pointers to DcmDictEntry objects
Definition at line 208 of file dchashdi.h.
DcmHashDict::DcmHashDict |
( |
int |
hashTabLen = DCMHASHDICT_DEFAULT_HASHSIZE | ) |
|
|
inline |
constructor
- Parameters
-
hashTabLen | number of buckets in hash table |
Definition at line 215 of file dchashdi.h.
References _init().
void DcmHashDict::del |
( |
const DcmTagKey & |
k, |
|
|
const char * |
privCreator |
|
) |
| |
deletes the entry for the given tag and private creator
- Parameters
-
k | tag key |
privCreator | private creator name, may be NULL |
searcjes entry for the given tag and private creator
- Parameters
-
lst | list to search in |
k | tag key |
privCreator | private creator name, may be NULL |
- Returns
- pointer to found element, NULL if not found
hash table lookup for the given tag key and private creator name.
- Parameters
-
key | tag key |
privCreator | private creator name, may be NULL |
int DcmHashDict::hash |
( |
const DcmTagKey * |
k | ) |
const |
|
private |
compute hash value for given tag key
- Parameters
-
- Returns
- hash value
inserts new entry into given list
- Parameters
-
lst | list to add to |
e | new element to add, will be deleted upon destruction of the hash table |
- Returns
- pointer to replaced element, if any
inserts an entry into hash table (deletes old entry if present)
- Parameters
-
removes the entry for the given tag and private creator
- Parameters
-
lst | list to remove from |
k | tag key |
privCreator | private creator name, may be NULL |
- Returns
- pointer to removed element, if any
The documentation for this class was generated from the following file: