Logo Search packages:      
Sourcecode: pwlib version File versions

BOOL PAbstractDictionary::SetAt ( PINDEX  index,
PObject val 
) [virtual]

Set the object at the specified index to the new value. The index is as is used in the GetKeyAt()# function. This will overwrite the existing entry. If the AllowDeleteObjects option is set then the old object is also deleted.

TRUE if the object was successfully added.
val  Index position in collection to set. New value to place into the collection.

Implements PCollection.

Definition at line 1705 of file collect.cxx.

References PHashTable::AbstractGetKeyAt(), and AbstractSetAt().

  return AbstractSetAt(AbstractGetKeyAt(index), val);

Generated by  Doxygen 1.6.0   Back to index