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

template<class Coll, class Key, class Base>
virtual BOOL PSafeDictionaryBase< Coll, Key, Base >::RemoveAt ( const Key &  key  )  [inline, virtual]

Remove an object to the collection. This function removes the object from the collection itself, but does not actually delete the object. It simply moves the object to a list of objects to be garbage collected at a later time.

As for Append() full mutual exclusion locking on the collection itself is maintained.

Parameters:
key  Key to fund object to delete

Definition at line 995 of file safecoll.h.

      {
        PWaitAndSignal mutex(collectionMutex);
        return SafeRemove(((Coll *)collection)->GetAt(key));
      }


Generated by  Doxygen 1.6.0   Back to index