CARLA
Public Member Functions | Private Attributes | List of all members
carla::traffic_manager::AtomicMap< Key, Value > Class Template Reference

#include <AtomicMap.h>

+ Inheritance diagram for carla::traffic_manager::AtomicMap< Key, Value >:
+ Collaboration diagram for carla::traffic_manager::AtomicMap< Key, Value >:

Public Member Functions

void AddEntry (const std::pair< Key, Value > &entry)
 
 AtomicMap ()
 
bool Contains (const Key &key) const
 
const Value & GetValue (const Key &key) const
 
void RemoveEntry (const Key &key)
 

Private Attributes

std::unordered_map< Key, Value > map
 
std::mutex map_mutex
 

Detailed Description

template<typename Key, typename Value>
class carla::traffic_manager::AtomicMap< Key, Value >

Definition at line 16 of file AtomicMap.h.

Constructor & Destructor Documentation

◆ AtomicMap()

template<typename Key, typename Value>
carla::traffic_manager::AtomicMap< Key, Value >::AtomicMap ( )
inline

Definition at line 25 of file AtomicMap.h.

Member Function Documentation

◆ AddEntry()

template<typename Key, typename Value>
void carla::traffic_manager::AtomicMap< Key, Value >::AddEntry ( const std::pair< Key, Value > &  entry)
inline

◆ Contains()

template<typename Key, typename Value>
bool carla::traffic_manager::AtomicMap< Key, Value >::Contains ( const Key &  key) const
inline

◆ GetValue()

template<typename Key, typename Value>
const Value& carla::traffic_manager::AtomicMap< Key, Value >::GetValue ( const Key &  key) const
inline

◆ RemoveEntry()

template<typename Key, typename Value>
void carla::traffic_manager::AtomicMap< Key, Value >::RemoveEntry ( const Key &  key)
inline

Member Data Documentation

◆ map

template<typename Key, typename Value>
std::unordered_map<Key, Value> carla::traffic_manager::AtomicMap< Key, Value >::map
private

Definition at line 21 of file AtomicMap.h.

◆ map_mutex

template<typename Key, typename Value>
std::mutex carla::traffic_manager::AtomicMap< Key, Value >::map_mutex
mutableprivate

Definition at line 20 of file AtomicMap.h.


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