OSSIA
Open Scenario System for Interactive Application
ossia::locked_container< Container > Class Template Reference

Thread-safe read-only reference to a container. More...

Detailed Description

template<typename Container>
class ossia::locked_container< Container >

Thread-safe read-only reference to a container.

Public Member Functions

 locked_container (Container &src, shared_mutex_t &mutex)
 
auto & front ()
 
const auto & front () const
 
auto empty () const
 
auto size () const
 
auto begin () const
 
auto end () const
 
auto cbegin () const
 
auto cend () const
 
auto begin ()
 
auto end ()
 
auto cbegin ()
 
auto cend ()
 
auto & operator[] (std::size_t i)
 
const auto & operator[] (std::size_t i) const