Privacy
An open-source, flexible 3D physical simulation framework
mars::data_broker::LockableContainer< T > Class Template Reference

#include <LockableContainer.h>

Public Member Functions

 LockableContainer ()
 
 ~LockableContainer ()
 
 LockableContainer (const LockableContainer &other)
 
LockableContaineroperator= (const LockableContainer &other)
 
void lock () const
 
void unlock () const
 
void locked_insert (const typename T::value_type &x)
 
void locked_push_back (const typename T::value_type &x)
 
void locked_clear ()
 
bool locked_empty () const
 

Private Attributes

mars::utils::MutexmyMutex
 

Detailed Description

template<typename T>
class mars::data_broker::LockableContainer< T >

Definition at line 13 of file LockableContainer.h.

Constructor & Destructor Documentation

◆ LockableContainer() [1/2]

template<typename T>
mars::data_broker::LockableContainer< T >::LockableContainer ( )
inline

Definition at line 17 of file LockableContainer.h.

◆ ~LockableContainer()

template<typename T>
mars::data_broker::LockableContainer< T >::~LockableContainer ( )
inline

Definition at line 20 of file LockableContainer.h.

◆ LockableContainer() [2/2]

template<typename T>
mars::data_broker::LockableContainer< T >::LockableContainer ( const LockableContainer< T > &  other)
inline

Definition at line 22 of file LockableContainer.h.

Member Function Documentation

◆ lock()

template<typename T>
void mars::data_broker::LockableContainer< T >::lock ( ) const
inline

Definition at line 41 of file LockableContainer.h.

◆ locked_clear()

template<typename T>
void mars::data_broker::LockableContainer< T >::locked_clear ( )
inline

Definition at line 58 of file LockableContainer.h.

◆ locked_empty()

template<typename T>
bool mars::data_broker::LockableContainer< T >::locked_empty ( ) const
inline

Definition at line 63 of file LockableContainer.h.

◆ locked_insert()

template<typename T>
void mars::data_broker::LockableContainer< T >::locked_insert ( const typename T::value_type &  x)
inline

Definition at line 48 of file LockableContainer.h.

◆ locked_push_back()

template<typename T>
void mars::data_broker::LockableContainer< T >::locked_push_back ( const typename T::value_type &  x)
inline

Definition at line 53 of file LockableContainer.h.

◆ operator=()

template<typename T>
LockableContainer& mars::data_broker::LockableContainer< T >::operator= ( const LockableContainer< T > &  other)
inline

Definition at line 30 of file LockableContainer.h.

◆ unlock()

template<typename T>
void mars::data_broker::LockableContainer< T >::unlock ( ) const
inline

Definition at line 44 of file LockableContainer.h.

Member Data Documentation

◆ myMutex

template<typename T>
mars::utils::Mutex* mars::data_broker::LockableContainer< T >::myMutex
mutableprivate

Definition at line 15 of file LockableContainer.h.


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