opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
osc::SynchronizedValueGuard< T, Mutex, MutexGuard > Class Template Referencefinal

#include <synchronized_value_guard.h>

Public Types

using value_type = T
 
using reference = value_type &
 
using const_reference = const value_type &
 
using pointer = value_type *
 
using const_pointer = const value_type *
 
using mutex_type = Mutex
 
using mutex_guard_type = MutexGuard
 

Public Member Functions

 SynchronizedValueGuard (mutex_type &mutex, reference value_ref)
 
reference operator* () &
 
const_reference operator* () const &
 
pointer operator-> ()
 
const_pointer operator-> () const
 

Member Typedef Documentation

◆ const_pointer

template<typename T , typename Mutex = std::mutex, typename MutexGuard = std::lock_guard<Mutex>>
using osc::SynchronizedValueGuard< T, Mutex, MutexGuard >::const_pointer = const value_type*

◆ const_reference

template<typename T , typename Mutex = std::mutex, typename MutexGuard = std::lock_guard<Mutex>>
using osc::SynchronizedValueGuard< T, Mutex, MutexGuard >::const_reference = const value_type&

◆ mutex_guard_type

template<typename T , typename Mutex = std::mutex, typename MutexGuard = std::lock_guard<Mutex>>
using osc::SynchronizedValueGuard< T, Mutex, MutexGuard >::mutex_guard_type = MutexGuard

◆ mutex_type

template<typename T , typename Mutex = std::mutex, typename MutexGuard = std::lock_guard<Mutex>>
using osc::SynchronizedValueGuard< T, Mutex, MutexGuard >::mutex_type = Mutex

◆ pointer

template<typename T , typename Mutex = std::mutex, typename MutexGuard = std::lock_guard<Mutex>>
using osc::SynchronizedValueGuard< T, Mutex, MutexGuard >::pointer = value_type*

◆ reference

template<typename T , typename Mutex = std::mutex, typename MutexGuard = std::lock_guard<Mutex>>
using osc::SynchronizedValueGuard< T, Mutex, MutexGuard >::reference = value_type&

◆ value_type

template<typename T , typename Mutex = std::mutex, typename MutexGuard = std::lock_guard<Mutex>>
using osc::SynchronizedValueGuard< T, Mutex, MutexGuard >::value_type = T

Constructor & Destructor Documentation

◆ SynchronizedValueGuard()

template<typename T , typename Mutex = std::mutex, typename MutexGuard = std::lock_guard<Mutex>>
osc::SynchronizedValueGuard< T, Mutex, MutexGuard >::SynchronizedValueGuard ( mutex_type mutex,
reference  value_ref 
)
inline

Member Function Documentation

◆ operator*() [1/2]

template<typename T , typename Mutex = std::mutex, typename MutexGuard = std::lock_guard<Mutex>>
reference osc::SynchronizedValueGuard< T, Mutex, MutexGuard >::operator* ( ) &
inline

◆ operator*() [2/2]

template<typename T , typename Mutex = std::mutex, typename MutexGuard = std::lock_guard<Mutex>>
const_reference osc::SynchronizedValueGuard< T, Mutex, MutexGuard >::operator* ( ) const &
inline

◆ operator->() [1/2]

template<typename T , typename Mutex = std::mutex, typename MutexGuard = std::lock_guard<Mutex>>
pointer osc::SynchronizedValueGuard< T, Mutex, MutexGuard >::operator-> ( )
inline

◆ operator->() [2/2]

template<typename T , typename Mutex = std::mutex, typename MutexGuard = std::lock_guard<Mutex>>
const_pointer osc::SynchronizedValueGuard< T, Mutex, MutexGuard >::operator-> ( ) const
inline

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