Iguana 0.0.0
Implementation Guardian of Analysis Algorithms
|
#include <ConcurrentParam.h>
a parameter that is not thread safe; used when iguana::GlobalConcurrencyModel
is "single"
Definition at line 70 of file ConcurrentParam.h.
Public Member Functions | |
T const | Load (concurrent_key_t const key) const override |
access a stored value | |
void | Save (T const &value, concurrent_key_t const key) override |
modify a value | |
bool | HasKey (concurrent_key_t const key) const override |
std::size_t | GetSize () const override |
Public Member Functions inherited from iguana::ConcurrentParam< T > | |
ConcurrentParam (std::string const &model) | |
bool | NeedsHashing () const |
whether or not hashing is needed to use this parameter | |
bool | IsEmpty () const |
Additional Inherited Members | |
Protected Attributes inherited from iguana::ConcurrentParam< T > | |
bool | m_needs_hashing |
whether this ConcurrentParam needs hashing for calling Load or Save | |
std::mutex | m_mutex |
mutex for this ConcurrentParam | |
bool | m_empty {true} |
whether this ConcurrentParam has something saved | |
|
overridevirtual |
Implements iguana::ConcurrentParam< T >.
|
overridevirtual |
|
overridevirtual |
access a stored value
key | the access key |
Implements iguana::ConcurrentParam< T >.
|
overridevirtual |