NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nstd::_weak_ptr< T > 模板类 参考

#include <ne_stl_smart_ptr.h>

Public 成员函数

 _weak_ptr ()
 
 _weak_ptr (const _weak_ptr &wp)
 
 _weak_ptr (const _shared_ptr< T > &sp)
 
 ~_weak_ptr ()
 
_weak_ptroperator= (const _weak_ptr &wp)
 
_shared_ptr< T > lock () const
 
bool expired () const
 
void reset ()
 

Private 成员函数

void dec_weak_count ()
 

Private 属性

T * data_
 
nstd::cblock * cblock_
 
void(* release_ )(T *&pdata)
 
void(* release_block_ )(nstd::cblock *&pdata)
 

友元

template<class Y >
class _shared_ptr
 

构造及析构函数说明

◆ _weak_ptr() [1/3]

template<class T >
nstd::_weak_ptr< T >::_weak_ptr ( )
inline

◆ _weak_ptr() [2/3]

template<class T >
nstd::_weak_ptr< T >::_weak_ptr ( const _weak_ptr< T > &  wp)
inline

◆ _weak_ptr() [3/3]

template<class T >
nstd::_weak_ptr< T >::_weak_ptr ( const _shared_ptr< T > &  sp)
inline

◆ ~_weak_ptr()

template<class T >
nstd::_weak_ptr< T >::~_weak_ptr ( )
inline

成员函数说明

◆ dec_weak_count()

template<class T >
void nstd::_weak_ptr< T >::dec_weak_count ( )
inlineprivate

◆ expired()

template<class T >
bool nstd::_weak_ptr< T >::expired ( ) const
inline

◆ lock()

template<class T >
_shared_ptr< T > nstd::_weak_ptr< T >::lock ( ) const
inline

◆ operator=()

template<class T >
_weak_ptr & nstd::_weak_ptr< T >::operator= ( const _weak_ptr< T > &  wp)
inline

◆ reset()

template<class T >
void nstd::_weak_ptr< T >::reset ( )
inline

友元及相关函数文档

◆ _shared_ptr

template<class T >
template<class Y >
friend class _shared_ptr
friend

类成员变量说明

◆ cblock_

template<class T >
nstd::cblock* nstd::_weak_ptr< T >::cblock_
private

◆ data_

template<class T >
T* nstd::_weak_ptr< T >::data_
private

◆ release_

template<class T >
void(* nstd::_weak_ptr< T >::release_) (T *&pdata)
private

◆ release_block_

template<class T >
void(* nstd::_weak_ptr< T >::release_block_) (nstd::cblock *&pdata)
private

该类的文档由以下文件生成: