This template class maps the PAbstractDictionary to a specific key type and a PString data type.
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 type and a PString data type. The functions in this class primarily do all the appropriate casting of types.Note that if templates are not used the PDECLARE_STRING_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.
This function asserts if there is no data at the key position.
The last key/data pair is remembered by the class so that subseqent
access is very fast. This function returns the dflt value if there is no data
at the key position.
The ordinal position in the dictionary is determined by the hash values
of the keys and the order of insertion.
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.
PString operator()(const K & key, const char * dflt = "") const
BOOL Contains( const K & key ) const
virtual PString* RemoveAt( const K & key )
virtual PString* GetAt( const K & key ) const
virtual BOOL SetDataAt( PINDEX index, const PString & str )
virtual BOOL SetAt( const K & key, const PString & str )
const K& GetKeyAt(PINDEX index) const
PString& GetDataAt(PINDEX index) const
Alphabetic index HTML hierarchy of classes or Java