PTLib
Version 2.10.10
|
This class defines a thread-safe array of objects. More...
#include <safecoll.h>
Public Types | |
typedef PSafePtr< Base > | value_type |
Additional Inherited Members | |
![]() | |
PSafeDictionaryBase () | |
Create a safe dictionary wrapper around the real collection. More... | |
PSafeDictionaryBase (const PSafeDictionaryBase &other) | |
Copy constructor for safe collection. More... | |
PSafeDictionaryBase & | operator= (const PSafeDictionaryBase &other) |
Assign one safe collection to another. More... | |
virtual void | SetAt (const Key &key, Base *obj) |
Add an object to the collection. More... | |
virtual PBoolean | RemoveAt (const Key &key) |
Remove an object to the collection. More... | |
virtual PBoolean | Contains (const Key &key) |
Determine of the dictionary contains an entry for the key. More... | |
virtual PSafePtr< Base > | GetAt (PINDEX idx, PSafetyMode mode=PSafeReadWrite) |
Get the instance in the collection of the index. More... | |
virtual PSafePtr< Base > | FindWithLock (const Key &key, PSafetyMode mode=PSafeReadWrite) |
Find the instance in the collection of an object with the same value. More... | |
PArray< Key > | GetKeys () const |
Get an array containing all the keys for the dictionary. More... | |
![]() | |
static const char * | Class () |
Get the name of the class as a C string. More... | |
static Comparison | InternalCompareObjectMemoryDirect (const PObject *obj1, const PObject *obj2, PINDEX size) |
Internal function caled from CompareObjectMemoryDirect() More... | |
![]() | |
void | CopySafeCollection (PCollection *other) |
void | CopySafeDictionary (PAbstractDictionary *other) |
void | SafeRemoveObject (PSafeObject *obj) |
PDECLARE_NOTIFIER (PTimer, PSafeCollection, DeleteObjectsTimeout) | |
virtual PBoolean | SafeRemove (PSafeObject *obj) |
Remove an object to the collection. More... | |
virtual PBoolean | SafeRemoveAt (PINDEX idx) |
Remove an object to the collection. More... | |
![]() | |
PCollection * | collection |
PMutex | collectionMutex |
bool | deleteObjects |
PList< PSafeObject > | toBeRemoved |
PMutex | removalMutex |
PTimer | deleteObjectsTimer |
![]() |
This class defines a thread-safe array of objects.
See the PSafeObject class for more details. Especially in regard to enumeration of collections.
typedef PSafePtr<Base> PSafeDictionary< Key, Base >::value_type |