LibreOffice Module o3tl (master) 1
Public Member Functions | Public Attributes | List of all members
o3tl::cow_wrapper< T, MTPolicy >::impl_t Struct Reference

shared value object - gets cloned before cow_wrapper hands out a non-const reference to it More...

Public Member Functions

 impl_t (const impl_t &)=delete
 
impl_toperator= (const impl_t &)=delete
 
 impl_t ()
 
 impl_t (const T &v)
 
 impl_t (T &&v)
 

Public Attributes

m_value
 
MTPolicy::ref_count_t m_ref_count
 

Detailed Description

template<typename T, class MTPolicy = UnsafeRefCountingPolicy>
struct o3tl::cow_wrapper< T, MTPolicy >::impl_t

shared value object - gets cloned before cow_wrapper hands out a non-const reference to it

Definition at line 176 of file cow_wrapper.hxx.

Constructor & Destructor Documentation

◆ impl_t() [1/4]

template<typename T , class MTPolicy = UnsafeRefCountingPolicy>
o3tl::cow_wrapper< T, MTPolicy >::impl_t::impl_t ( const impl_t )
delete

◆ impl_t() [2/4]

template<typename T , class MTPolicy = UnsafeRefCountingPolicy>
o3tl::cow_wrapper< T, MTPolicy >::impl_t::impl_t ( )
inline

◆ impl_t() [3/4]

template<typename T , class MTPolicy = UnsafeRefCountingPolicy>
o3tl::cow_wrapper< T, MTPolicy >::impl_t::impl_t ( const T &  v)
inlineexplicit

Definition at line 187 of file cow_wrapper.hxx.

References v.

◆ impl_t() [4/4]

template<typename T , class MTPolicy = UnsafeRefCountingPolicy>
o3tl::cow_wrapper< T, MTPolicy >::impl_t::impl_t ( T &&  v)
inlineexplicit

Definition at line 193 of file cow_wrapper.hxx.

References v.

Member Function Documentation

◆ operator=()

template<typename T , class MTPolicy = UnsafeRefCountingPolicy>
impl_t & o3tl::cow_wrapper< T, MTPolicy >::impl_t::operator= ( const impl_t )
delete

Member Data Documentation

◆ m_ref_count

template<typename T , class MTPolicy = UnsafeRefCountingPolicy>
MTPolicy::ref_count_t o3tl::cow_wrapper< T, MTPolicy >::impl_t::m_ref_count

◆ m_value

template<typename T , class MTPolicy = UnsafeRefCountingPolicy>
T o3tl::cow_wrapper< T, MTPolicy >::impl_t::m_value

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