|
constexpr | RealtimeBoxBase (const T &init=T{}) |
|
constexpr | RealtimeBoxBase (const T &&init) |
|
constexpr | RealtimeBoxBase (const RealtimeBoxBase &o) |
|
constexpr RealtimeBoxBase & | operator= (const RealtimeBoxBase &o) |
|
constexpr | RealtimeBoxBase (RealtimeBoxBase &&o) |
|
template<typename U = T> |
constexpr | RealtimeBoxBase (const std::initializer_list< U > &init, std::enable_if_t< std::is_constructible_v< U, std::initializer_list< U > > >) |
|
constexpr RealtimeBoxBase & | operator= (RealtimeBoxBase &&o) |
|
template<typename U = T> |
std::enable_if_t<!is_ptr_or_smart_ptr< U >, bool > | try_set (const T &value) |
| set a new content with best effort
|
|
bool | try_set (const std::function< void(T &)> &func) |
| access the content readable with best effort
|
|
template<typename U = T> |
std::enable_if_t<!is_ptr_or_smart_ptr< U >, std::optional< U > > | try_get () const |
| get the content with best effort
|
|
bool | try_get (const std::function< void(const T &)> &func) |
| access the content (r) with best effort
|
|
template<typename U = T> |
std::enable_if_t<!is_ptr_or_smart_ptr< U >, void > | set (const T &value) |
| Wait until the mutex can be locked and set the content (RealtimeBox behavior)
|
|
void | set (const std::function< void(T &)> &func) |
| wait until the mutex could be locked and access the content (rw)
|
|
template<typename U = T> |
std::enable_if_t<!is_ptr_or_smart_ptr< U >, U > | get () const |
| Wait until the mutex could be locked and get the content (RealtimeBox behaviour)
|
|
template<typename U = T> |
std::enable_if_t<!is_ptr_or_smart_ptr< U >, void > | get (T &in) const |
| Wait until the mutex could be locked and get the content (r)
|
|
void | get (const std::function< void(const T &)> &func) |
| Wait until the mutex could be locked and access the content (r)
|
|
template<typename U = T> |
std::enable_if_t<!is_ptr_or_smart_ptr< U >, void > | operator= (const T &value) |
| provide a custom assignment operator for easier usage
|
|
template<typename U = T, typename = typename std::enable_if_t<!is_ptr_or_smart_ptr<U>>> |
| operator T () const |
| provide a custom conversion operator
|
|
template<typename U = T, typename = typename std::enable_if_t<!is_ptr_or_smart_ptr<U>>> |
| operator std::optional< T > () const |
| provide a custom conversion operator
|
|
const mutex_t & | get_mutex () const |
|
mutex_t & | get_mutex () |
|