Chatterino
Public Member Functions | List of all members
chatterino::ConcurrentMap< TKey, TValue > Class Template Reference

#include <ConcurrentMap.hpp>

Public Member Functions

 ConcurrentMap ()=default
 
bool tryGet (const TKey &name, TValue &value) const
 
TValue getOrAdd (const TKey &name, std::function< TValue()> addLambda)
 
TValue & operator[] (const TKey &name)
 
void clear ()
 
void insert (const TKey &name, const TValue &value)
 
void each (std::function< void(const TKey &name, const TValue &value)> func) const
 
void each (std::function< void(const TKey &name, TValue &value)> func)
 
 ConcurrentMap ()=default
 
bool tryGet (const TKey &name, TValue &value) const
 
TValue getOrAdd (const TKey &name, std::function< TValue()> addLambda)
 
TValue & operator[] (const TKey &name)
 
void clear ()
 
void insert (const TKey &name, const TValue &value)
 
void each (std::function< void(const TKey &name, const TValue &value)> func) const
 
void each (std::function< void(const TKey &name, TValue &value)> func)
 

Constructor & Destructor Documentation

◆ ConcurrentMap() [1/2]

template<typename TKey, typename TValue>
chatterino::ConcurrentMap< TKey, TValue >::ConcurrentMap ( )
default

◆ ConcurrentMap() [2/2]

template<typename TKey, typename TValue>
chatterino::ConcurrentMap< TKey, TValue >::ConcurrentMap ( )
default

Member Function Documentation

◆ clear() [1/2]

template<typename TKey, typename TValue>
void chatterino::ConcurrentMap< TKey, TValue >::clear ( )
inline

◆ clear() [2/2]

template<typename TKey, typename TValue>
void chatterino::ConcurrentMap< TKey, TValue >::clear ( )
inline

◆ each() [1/4]

template<typename TKey, typename TValue>
void chatterino::ConcurrentMap< TKey, TValue >::each ( std::function< void(const TKey &name, const TValue &value)>  func) const
inline
Here is the caller graph for this function:

◆ each() [2/4]

template<typename TKey, typename TValue>
void chatterino::ConcurrentMap< TKey, TValue >::each ( std::function< void(const TKey &name, const TValue &value)>  func) const
inline

◆ each() [3/4]

template<typename TKey, typename TValue>
void chatterino::ConcurrentMap< TKey, TValue >::each ( std::function< void(const TKey &name, TValue &value)>  func)
inline

◆ each() [4/4]

template<typename TKey, typename TValue>
void chatterino::ConcurrentMap< TKey, TValue >::each ( std::function< void(const TKey &name, TValue &value)>  func)
inline

◆ getOrAdd() [1/2]

template<typename TKey, typename TValue>
TValue chatterino::ConcurrentMap< TKey, TValue >::getOrAdd ( const TKey &  name,
std::function< TValue()>  addLambda 
)
inline

◆ getOrAdd() [2/2]

template<typename TKey, typename TValue>
TValue chatterino::ConcurrentMap< TKey, TValue >::getOrAdd ( const TKey &  name,
std::function< TValue()>  addLambda 
)
inline

◆ insert() [1/2]

template<typename TKey, typename TValue>
void chatterino::ConcurrentMap< TKey, TValue >::insert ( const TKey &  name,
const TValue &  value 
)
inline
Here is the caller graph for this function:

◆ insert() [2/2]

template<typename TKey, typename TValue>
void chatterino::ConcurrentMap< TKey, TValue >::insert ( const TKey &  name,
const TValue &  value 
)
inline

◆ operator[]() [1/2]

template<typename TKey, typename TValue>
TValue& chatterino::ConcurrentMap< TKey, TValue >::operator[] ( const TKey &  name)
inline

◆ operator[]() [2/2]

template<typename TKey, typename TValue>
TValue& chatterino::ConcurrentMap< TKey, TValue >::operator[] ( const TKey &  name)
inline

◆ tryGet() [1/2]

template<typename TKey, typename TValue>
bool chatterino::ConcurrentMap< TKey, TValue >::tryGet ( const TKey &  name,
TValue &  value 
) const
inline

◆ tryGet() [2/2]

template<typename TKey, typename TValue>
bool chatterino::ConcurrentMap< TKey, TValue >::tryGet ( const TKey &  name,
TValue &  value 
) const
inline

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