16 #ifndef SURGSIM_DATASTRUCTURES_BUFFEREDVALUE_INL_H
17 #define SURGSIM_DATASTRUCTURES_BUFFEREDVALUE_INL_H
21 namespace DataStructures
27 m_safeValue = std::make_shared<const T>();
46 m_safeValue = std::make_shared<const T>(m_value);
Definition: DriveElementFromInputBehavior.cpp:27
std::shared_ptr< const T > m_safeValue
The buffered value.
Definition: BufferedValue.h:66
~BufferedValue()
Destructor.
Definition: BufferedValue-inl.h:38
T & unsafeGet()
Get the value.
Definition: BufferedValue-inl.h:50
std::shared_ptr< const T > safeGet() const
Get the buffered value.
Definition: BufferedValue-inl.h:56
boost::unique_lock< boost::shared_mutex > UniqueLock
Definition: BufferedValue.h:60
BufferedValue()
Definition: BufferedValue-inl.h:25
boost::shared_lock< boost::shared_mutex > SharedLock
Definition: BufferedValue.h:59
void publish()
Make the current value the one returned by calls to safeGet.
Definition: BufferedValue-inl.h:43
T m_value
The raw value.
Definition: BufferedValue.h:63