mn::pointer::basic_weak_ptr< T, TRefType > Class Template Reference
#include <mn_weak_ptr.hpp>
Collaboration diagram for mn::pointer::basic_weak_ptr< T, TRefType >:
Public Types | |
using | value_type = T |
using | element_type = T |
using | reference = T & |
using | const_value_type = const value_type |
using | pointer = value_type * |
using | count_type = TRefType |
using | self_type = basic_weak_ptr< value_type, count_type > |
using | shared_type = basic_shared_ptr< value_type, count_type > |
Public Member Functions | |
basic_weak_ptr (value_type pValue=0) | |
basic_weak_ptr (const self_type &r) | |
basic_weak_ptr (shared_type &pShrd) | |
template<class U , typename YRefType = count_type> | |
basic_weak_ptr (const basic_weak_ptr< U, YRefType > &r) | |
template<class U , typename YRefType = count_type> | |
basic_weak_ptr (const basic_shared_ptr< U, YRefType > &pShrd) | |
shared_type | lock () |
bool | expired () |
void | reset () |
count_type | use_count () |
void | swap (self_type &other) |
template<class Y , typename YRefType = atomic_size_t> | |
bool | owner_before (const basic_weak_ptr< Y, YRefType > &rhs) |
template<class Y , typename YRefType = atomic_size_t> | |
bool | owner_before (const basic_shared_ptr< Y, YRefType > &rhs) |
pointer | get () const |
pointer | operator-> () const |
const_value_type & | operator* () |
operator bool () | |
self_type & | operator= (const self_type &r) |
Private Attributes | |
pointer | m_ptr |
count_type | m_ref |
Member Typedef Documentation
◆ const_value_type
template<typename T , typename TRefType = atomic_size_t>
using mn::pointer::basic_weak_ptr< T, TRefType >::const_value_type = const value_type |
◆ count_type
template<typename T , typename TRefType = atomic_size_t>
using mn::pointer::basic_weak_ptr< T, TRefType >::count_type = TRefType |
◆ element_type
template<typename T , typename TRefType = atomic_size_t>
using mn::pointer::basic_weak_ptr< T, TRefType >::element_type = T |
◆ pointer
template<typename T , typename TRefType = atomic_size_t>
using mn::pointer::basic_weak_ptr< T, TRefType >::pointer = value_type* |
◆ reference
template<typename T , typename TRefType = atomic_size_t>
using mn::pointer::basic_weak_ptr< T, TRefType >::reference = T& |
◆ self_type
template<typename T , typename TRefType = atomic_size_t>
using mn::pointer::basic_weak_ptr< T, TRefType >::self_type = basic_weak_ptr<value_type, count_type> |
◆ shared_type
template<typename T , typename TRefType = atomic_size_t>
using mn::pointer::basic_weak_ptr< T, TRefType >::shared_type = basic_shared_ptr<value_type, count_type> |
◆ value_type
template<typename T , typename TRefType = atomic_size_t>
using mn::pointer::basic_weak_ptr< T, TRefType >::value_type = T |
Constructor & Destructor Documentation
◆ basic_weak_ptr() [1/5]
template<typename T , typename TRefType = atomic_size_t>
|
inlineexplicit |
◆ basic_weak_ptr() [2/5]
template<typename T , typename TRefType = atomic_size_t>
|
inline |
◆ basic_weak_ptr() [3/5]
template<typename T , typename TRefType = atomic_size_t>
|
inline |
◆ basic_weak_ptr() [4/5]
template<typename T , typename TRefType = atomic_size_t>
template<class U , typename YRefType = count_type>
|
inline |
◆ basic_weak_ptr() [5/5]
template<typename T , typename TRefType = atomic_size_t>
template<class U , typename YRefType = count_type>
|
inline |
Member Function Documentation
◆ expired()
template<typename T , typename TRefType = atomic_size_t>
|
inline |
◆ get()
template<typename T , typename TRefType = atomic_size_t>
|
inline |
◆ lock()
template<typename T , typename TRefType = atomic_size_t>
|
inline |
◆ operator bool()
template<typename T , typename TRefType = atomic_size_t>
|
inline |
◆ operator*()
template<typename T , typename TRefType = atomic_size_t>
|
inline |
◆ operator->()
template<typename T , typename TRefType = atomic_size_t>
|
inline |
◆ operator=()
template<typename T , typename TRefType = atomic_size_t>
|
inline |
◆ owner_before() [1/2]
template<typename T , typename TRefType = atomic_size_t>
template<class Y , typename YRefType = atomic_size_t>
|
inline |
◆ owner_before() [2/2]
template<typename T , typename TRefType = atomic_size_t>
template<class Y , typename YRefType = atomic_size_t>
|
inline |
◆ reset()
template<typename T , typename TRefType = atomic_size_t>
|
inline |
◆ swap()
template<typename T , typename TRefType = atomic_size_t>
|
inline |
◆ use_count()
template<typename T , typename TRefType = atomic_size_t>
|
inline |
Member Data Documentation
◆ m_ptr
template<typename T , typename TRefType = atomic_size_t>
|
private |
◆ m_ref
template<typename T , typename TRefType = atomic_size_t>
|
private |
The documentation for this class was generated from the following file: