#include <GteThreadSafeMap.h>
Public Member Functions | |
bool | Exists (Key key) const |
void | GatherAll (std::vector< Value > &values) const |
bool | Get (Key key, Value &value) const |
bool | HasElements () const |
void | Insert (Key key, Value value) |
bool | Remove (Key key, Value &value) |
void | RemoveAll () |
ThreadSafeMap () | |
virtual | ~ThreadSafeMap () |
Protected Attributes | |
std::map< Key, Value > | mMap |
std::mutex | mMutex |
Definition at line 19 of file GteThreadSafeMap.h.
|
virtual |
Definition at line 42 of file GteThreadSafeMap.h.
gte::ThreadSafeMap< Key, Value >::ThreadSafeMap | ( | ) |
Definition at line 47 of file GteThreadSafeMap.h.
bool gte::ThreadSafeMap< Key, Value >::Exists | ( | Key | key | ) | const |
Definition at line 64 of file GteThreadSafeMap.h.
void gte::ThreadSafeMap< Key, Value >::GatherAll | ( | std::vector< Value > & | values | ) | const |
Definition at line 139 of file GteThreadSafeMap.h.
bool gte::ThreadSafeMap< Key, Value >::Get | ( | Key | key, |
Value & | value | ||
) | const |
Definition at line 118 of file GteThreadSafeMap.h.
bool gte::ThreadSafeMap< Key, Value >::HasElements | ( | ) | const |
Definition at line 52 of file GteThreadSafeMap.h.
void gte::ThreadSafeMap< Key, Value >::Insert | ( | Key | key, |
Value | value | ||
) |
Definition at line 76 of file GteThreadSafeMap.h.
bool gte::ThreadSafeMap< Key, Value >::Remove | ( | Key | key, |
Value & | value | ||
) |
Definition at line 86 of file GteThreadSafeMap.h.
void gte::ThreadSafeMap< Key, Value >::RemoveAll | ( | ) |
Definition at line 108 of file GteThreadSafeMap.h.
|
protected |
Definition at line 36 of file GteThreadSafeMap.h.
|
mutableprotected |
Definition at line 37 of file GteThreadSafeMap.h.