Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

BOOL PAbstractList::Remove ( const PObject obj ) [virtual]

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

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

Implements PCollection.

Definition at line 597 of file collect.cxx.

References GetObjectsIndex(), and RemoveAt().

{
  PINDEX i = GetObjectsIndex(obj);
  if (i == P_MAX_INDEX)
    return FALSE;
  RemoveAt(i);
  return TRUE;
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index