Public Member Functions | Protected Attributes | List of all members
gte::ThreadSafeMap< Key, Value > Class Template Reference

#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
 

Detailed Description

template<typename Key, typename Value>
class gte::ThreadSafeMap< Key, Value >

Definition at line 19 of file GteThreadSafeMap.h.

Constructor & Destructor Documentation

template<typename Key , typename Value >
gte::ThreadSafeMap< Key, Value >::~ThreadSafeMap ( )
virtual

Definition at line 42 of file GteThreadSafeMap.h.

template<typename Key , typename Value >
gte::ThreadSafeMap< Key, Value >::ThreadSafeMap ( )

Definition at line 47 of file GteThreadSafeMap.h.

Member Function Documentation

template<typename Key, typename Value >
bool gte::ThreadSafeMap< Key, Value >::Exists ( Key  key) const

Definition at line 64 of file GteThreadSafeMap.h.

template<typename Key , typename Value>
void gte::ThreadSafeMap< Key, Value >::GatherAll ( std::vector< Value > &  values) const

Definition at line 139 of file GteThreadSafeMap.h.

template<typename Key, typename Value>
bool gte::ThreadSafeMap< Key, Value >::Get ( Key  key,
Value &  value 
) const

Definition at line 118 of file GteThreadSafeMap.h.

template<typename Key , typename Value >
bool gte::ThreadSafeMap< Key, Value >::HasElements ( ) const

Definition at line 52 of file GteThreadSafeMap.h.

template<typename Key, typename Value>
void gte::ThreadSafeMap< Key, Value >::Insert ( Key  key,
Value  value 
)

Definition at line 76 of file GteThreadSafeMap.h.

template<typename Key, typename Value>
bool gte::ThreadSafeMap< Key, Value >::Remove ( Key  key,
Value &  value 
)

Definition at line 86 of file GteThreadSafeMap.h.

template<typename Key , typename Value >
void gte::ThreadSafeMap< Key, Value >::RemoveAll ( )

Definition at line 108 of file GteThreadSafeMap.h.

Member Data Documentation

template<typename Key, typename Value>
std::map<Key,Value> gte::ThreadSafeMap< Key, Value >::mMap
protected

Definition at line 36 of file GteThreadSafeMap.h.

template<typename Key, typename Value>
std::mutex gte::ThreadSafeMap< Key, Value >::mMutex
mutableprotected

Definition at line 37 of file GteThreadSafeMap.h.


The documentation for this class was generated from the following file:


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:07