FreeLing  4.0
Public Member Functions | Private Attributes
safe_map< T1, T2 > Class Template Reference

This class provides a map with thread_safe writing acces. More...

#include <safe_map.h>

Inheritance diagram for safe_map< T1, T2 >:
Inheritance graph
[legend]
Collaboration diagram for safe_map< T1, T2 >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool find_safe (const T1 &key, T2 &val)
void insert_safe (const T1 &key, const T2 &val)
void erase_safe (const T1 &key)

Private Attributes

boost::mutex sem

Detailed Description

template<class T1, class T2>
class safe_map< T1, T2 >

This class provides a map with thread_safe writing acces.


Member Function Documentation

template<class T1, class T2>
void safe_map< T1, T2 >::erase_safe ( const T1 &  key) [inline]
template<class T1, class T2>
bool safe_map< T1, T2 >::find_safe ( const T1 &  key,
T2 &  val 
) [inline]
template<class T1, class T2>
void safe_map< T1, T2 >::insert_safe ( const T1 &  key,
const T2 &  val 
) [inline]

Member Data Documentation

template<class T1, class T2>
boost::mutex safe_map< T1, T2 >::sem [private]

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