#include <thread_safe_map.hpp>
Public Member Functions | |
T | find (std::string first) |
bool | insert (const std::string &first, const T &value) |
std::vector< std::string > | keys () |
Map () | |
bool | update (const std::string &first, const T &value) |
~Map () | |
Private Types | |
typedef std::map< std::string, T > | InternalMap |
Private Attributes | |
std::vector< std::string > | keys_ |
boost::shared_ptr< InternalMap > | map_ |
boost::shared_ptr < boost::shared_mutex > | mutex_ |
Static Private Attributes | |
static const int | lock_wait_time = 100 |
Definition at line 41 of file thread_safe_map.hpp.
typedef std::map<std::string , T> threadsafe::Map< T >::InternalMap [private] |
Definition at line 88 of file thread_safe_map.hpp.
threadsafe::Map< T >::Map | ( | ) | [inline] |
Definition at line 44 of file thread_safe_map.hpp.
threadsafe::Map< T >::~Map | ( | ) | [inline] |
Definition at line 49 of file thread_safe_map.hpp.
T threadsafe::Map< T >::find | ( | std::string | first | ) | [inline] |
Definition at line 51 of file thread_safe_map.hpp.
bool threadsafe::Map< T >::insert | ( | const std::string & | first, |
const T & | value | ||
) | [inline] |
Definition at line 58 of file thread_safe_map.hpp.
std::vector<std::string> threadsafe::Map< T >::keys | ( | ) | [inline] |
Definition at line 80 of file thread_safe_map.hpp.
bool threadsafe::Map< T >::update | ( | const std::string & | first, |
const T & | value | ||
) | [inline] |
Definition at line 69 of file thread_safe_map.hpp.
std::vector<std::string> threadsafe::Map< T >::keys_ [private] |
Definition at line 93 of file thread_safe_map.hpp.
const int threadsafe::Map< T >::lock_wait_time = 100 [static, private] |
Definition at line 86 of file thread_safe_map.hpp.
boost::shared_ptr<InternalMap> threadsafe::Map< T >::map_ [private] |
Definition at line 90 of file thread_safe_map.hpp.
boost::shared_ptr<boost::shared_mutex> threadsafe::Map< T >::mutex_ [private] |
Definition at line 92 of file thread_safe_map.hpp.