This template class maps the PAbstractDictionary to a specific key and data types.
Overrides from class PCollection
Overrides from class PContainer
Common functions for collections
Common functions for containers
Run Time Type functions
Comparison functions
I/O functions
Miscellaneous functions
This template class maps the PAbstractDictionary to a specific key and data types. The functions in this class primarily do all the appropriate casting of types.Note that if templates are not used the PDECLARE_DICTIONARY macro will simulate the template instantiation.
Note that by default, objects placed into the dictionary will be deleted when removed or when all references to the dictionary are destroyed.
The last key/data pair is remembered by the class so that subseqent access is very fast.
The object is placed in the an ordinal position dependent on the keys
hash function. Subsequent searches use the has function to speed access
to the data item.
The ordinal position in the dictionary is determined by the hash values
of the keys and the order of insertion. The last key/data pair is remembered by the class so that subseqent
access is very fast.
The ordinal position in the dictionary is determined by the hash values
of the keys and the order of insertion. The last key/data pair is remembered by the class so that subseqent
access is very fast.
BOOL Contains( const K & key ) const
virtual D* RemoveAt( const K & key )
virtual BOOL SetAt( const K & key, D * obj )
virtual D* GetAt( const K & key ) const
const K& GetKeyAt( PINDEX index ) const
D& GetDataAt( PINDEX index ) const
Alphabetic index HTML hierarchy of classes or Java