MySQL 9.1.0
Source Code Documentation
mysql_harness::DIM::RWLockedUniquePtr< T > Class Template Reference

Public Types

using value_type = T
 

Public Member Functions

void set_static (value_type *inst)
 
void set (value_type *inst, std::function< void(value_type *)> deleter)
 
value_typeget () const
 
void reset ()
 
 operator bool () const
 

Private Attributes

UniquePtr< value_typeinst_
 
std::shared_mutex mtx_
 

Member Typedef Documentation

◆ value_type

template<class T >
using mysql_harness::DIM::RWLockedUniquePtr< T >::value_type = T

Member Function Documentation

◆ get()

template<class T >
value_type & mysql_harness::DIM::RWLockedUniquePtr< T >::get ( ) const
inline

◆ operator bool()

template<class T >
mysql_harness::DIM::RWLockedUniquePtr< T >::operator bool ( ) const
inlineexplicit

◆ reset()

template<class T >
void mysql_harness::DIM::RWLockedUniquePtr< T >::reset ( )
inline

◆ set()

template<class T >
void mysql_harness::DIM::RWLockedUniquePtr< T >::set ( value_type inst,
std::function< void(value_type *)>  deleter 
)
inline

◆ set_static()

template<class T >
void mysql_harness::DIM::RWLockedUniquePtr< T >::set_static ( value_type inst)
inline

Member Data Documentation

◆ inst_

template<class T >
UniquePtr<value_type> mysql_harness::DIM::RWLockedUniquePtr< T >::inst_
private

◆ mtx_

template<class T >
std::shared_mutex mysql_harness::DIM::RWLockedUniquePtr< T >::mtx_
mutableprivate

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