Logo Search packages:      
Sourcecode: pwlib version File versions

virtual BOOL PCollection::Remove ( const PObject obj  )  [pure virtual, inherited]

Remove the object from the collection. If the AllowDeleteObjects option is set then the object is also deleted.

Note that the comparison for searching for the object in collection is made by pointer, not by value. Thus the parameter must point to the same instance of the object that is in the collection.

Returns:
TRUE if the object was in the collection.
Parameters:
obj  Existing object to remove from the collection.

Implemented in PArrayObjects, PAbstractSet, PAbstractDictionary, PAbstractList, and PAbstractSortedList.

Referenced by PSafeCollection::SafeRemove().


Generated by  Doxygen 1.6.0   Back to index