Public Member Functions | |
virtual | ~ThreadSafeMap () |
bool | HasElements () const |
bool | Exists (Key key) const |
void | Insert (Key key, Value value) |
bool | Remove (Key key, Value &value) |
void | RemoveAll () |
bool | Get (Key key, Value &value) const |
void | GatherAll (std::vector< Value > &values) const |
Protected Attributes | |
std::map< Key, Value > | mMap |
std::mutex | mMutex |
Definition at line 22 of file NeThreadSafeMap.h.
|
virtual |
File: NECore/Threading/NeThreadSafeMap.inl
Author:
Email:
Site:
Copyright (c) 2016 . All rights reserved.
Definition at line 12 of file NeThreadSafeMap.inl.
ThreadSafeMap::ThreadSafeMap | ( | ) |
Definition at line 17 of file NeThreadSafeMap.inl.
bool ThreadSafeMap::HasElements | ( | ) | const |
Definition at line 22 of file NeThreadSafeMap.inl.
bool ThreadSafeMap::Exists | ( | Key | key | ) | const |
Definition at line 34 of file NeThreadSafeMap.inl.
void ThreadSafeMap::Insert | ( | Key | key, |
Value | value | ||
) |
Definition at line 46 of file NeThreadSafeMap.inl.
bool ThreadSafeMap::Remove | ( | Key | key, |
Value & | value | ||
) |
Definition at line 56 of file NeThreadSafeMap.inl.
void ThreadSafeMap::RemoveAll | ( | ) |
Definition at line 78 of file NeThreadSafeMap.inl.
bool ThreadSafeMap::Get | ( | Key | key, |
Value & | value | ||
) | const |
Definition at line 88 of file NeThreadSafeMap.inl.
void ThreadSafeMap::GatherAll | ( | std::vector< Value > & | values | ) | const |
Definition at line 109 of file NeThreadSafeMap.inl.
|
protected |
Definition at line 39 of file NeThreadSafeMap.h.
|
mutableprotected |
Definition at line 40 of file NeThreadSafeMap.h.