Buran Motion Planning Framework
Classes | Public Member Functions | Friends | List of all members
safe_ptr< T, mutex_t, x_lock_t, s_lock_t > Class Template Reference

#include <safe_ptr.h>

Public Member Functions

const std::shared_ptr< T > & getPtr () const
 
template<typename... Args>
 safe_ptr (Args... args)
 
auto_lock_t< x_lock_t > operator-> ()
 
auto_lock_obj_t< x_lock_t > operator* ()
 
const auto_lock_t< s_lock_t > operator-> () const
 
const auto_lock_obj_t< s_lock_t > operator* () const
 

Friends

struct link_safe_ptrs
 
template<typename mutex_type >
class std::lock_guard
 

Detailed Description

template<typename T, typename mutex_t = std::recursive_mutex, typename x_lock_t = std::unique_lock<mutex_t>, typename s_lock_t = std::unique_lock<mutex_t >>
class safe_ptr< T, mutex_t, x_lock_t, s_lock_t >

Потокобезопасный указатель на коллекцию (пример использования закомментирован в конце файла)


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