fastdo  0.5.12
winux::WeakHandle< _HTy > 模板类 参考

弱句柄 更多...

#include <smartptr.hpp>

Public 类型

typedef _HTy HType
 
typedef SharedHandle< _HTy >::SharedHandleData WeakHandleData
 

Public 成员函数

 WeakHandle ()
 
virtual ~WeakHandle ()
 
template<typename _HTy2 >
 WeakHandle (SharedHandle< _HTy2 > const &other)
 
template<typename _HTy2 >
WeakHandle & operator= (SharedHandle< _HTy2 > const &other)
 
 WeakHandle (WeakHandle const &other)
 
WeakHandle & operator= (WeakHandle const &other)
 
template<typename _HTy2 >
 WeakHandle (WeakHandle< _HTy2 > const &other)
 
template<typename _HTy2 >
WeakHandle & operator= (WeakHandle< _HTy2 > const &other)
 
void reset ()
 
SharedHandle< _HTy > lock () const
 
bool expired () const
 是否过期 更多...
 
 operator bool ()
 
 operator bool () const
 

Protected 成员函数

template<typename _HTy2 >
bool _sharedReset (SharedHandle< _HTy2 > *pSharedHandle) const
 Shared*PTR* call reset。用于从Weak*PTR*创建Shared*PTR*. 更多...
 
template<typename _HTy2 >
void _reset (_HTy2 otherH, SharedDeleterContext *otherCtx)
 增加另一个弱引用计数,减少自身弱计数。管理另一个Weak*PTR* 更多...
 
template<typename _HTy2 >
void _reset (WeakHandle< _HTy2 > const &other)
 增加另一个弱引用计数,减少自身弱计数。管理另一个Weak*PTR* 更多...
 

Protected 属性

WeakHandleData _self
 

友元

template<typename _HTy0 >
class WeakHandle
 

详细描述

template<typename _HTy>
class winux::WeakHandle< _HTy >

弱句柄

在文件 smartptr.hpp 第 739 行定义.

成员类型定义说明

template<typename _HTy>
typedef _HTy winux::WeakHandle< _HTy >::HType

在文件 smartptr.hpp 第 742 行定义.

template<typename _HTy>
typedef SharedHandle<_HTy>::SharedHandleData winux::WeakHandle< _HTy >::WeakHandleData

在文件 smartptr.hpp 第 744 行定义.

构造及析构函数说明

template<typename _HTy>
winux::WeakHandle< _HTy >::WeakHandle ( )
inline

在文件 smartptr.hpp 第 746 行定义.

template<typename _HTy>
virtual winux::WeakHandle< _HTy >::~WeakHandle ( )
inlinevirtual

在文件 smartptr.hpp 第 748 行定义.

template<typename _HTy>
template<typename _HTy2 >
winux::WeakHandle< _HTy >::WeakHandle ( SharedHandle< _HTy2 > const &  other)
inline

在文件 smartptr.hpp 第 754 行定义.

template<typename _HTy>
winux::WeakHandle< _HTy >::WeakHandle ( WeakHandle< _HTy > const &  other)
inline

在文件 smartptr.hpp 第 766 行定义.

template<typename _HTy>
template<typename _HTy2 >
winux::WeakHandle< _HTy >::WeakHandle ( WeakHandle< _HTy2 > const &  other)
inline

在文件 smartptr.hpp 第 778 行定义.

成员函数说明

template<typename _HTy>
template<typename _HTy2 >
void winux::WeakHandle< _HTy >::_reset ( _HTy2  otherH,
SharedDeleterContext *  otherCtx 
)
inlineprotected

增加另一个弱引用计数,减少自身弱计数。管理另一个Weak*PTR*

在文件 smartptr.hpp 第 826 行定义.

template<typename _HTy>
template<typename _HTy2 >
void winux::WeakHandle< _HTy >::_reset ( WeakHandle< _HTy2 > const &  other)
inlineprotected

增加另一个弱引用计数,减少自身弱计数。管理另一个Weak*PTR*

在文件 smartptr.hpp 第 838 行定义.

template<typename _HTy>
template<typename _HTy2 >
bool winux::WeakHandle< _HTy >::_sharedReset ( SharedHandle< _HTy2 > *  pSharedHandle) const
inlineprotected

Shared*PTR* call reset。用于从Weak*PTR*创建Shared*PTR*.

在文件 smartptr.hpp 第 813 行定义.

template<typename _HTy>
bool winux::WeakHandle< _HTy >::expired ( ) const
inline

是否过期

true表示已过期,false表示尚未过期

在文件 smartptr.hpp 第 805 行定义.

template<typename _HTy>
SharedHandle<_HTy> winux::WeakHandle< _HTy >::lock ( ) const
inline

在文件 smartptr.hpp 第 795 行定义.

template<typename _HTy>
winux::WeakHandle< _HTy >::operator bool ( )
inline

在文件 smartptr.hpp 第 807 行定义.

template<typename _HTy>
winux::WeakHandle< _HTy >::operator bool ( ) const
inline

在文件 smartptr.hpp 第 808 行定义.

template<typename _HTy>
template<typename _HTy2 >
WeakHandle& winux::WeakHandle< _HTy >::operator= ( SharedHandle< _HTy2 > const &  other)
inline

在文件 smartptr.hpp 第 760 行定义.

template<typename _HTy>
WeakHandle& winux::WeakHandle< _HTy >::operator= ( WeakHandle< _HTy > const &  other)
inline

在文件 smartptr.hpp 第 771 行定义.

template<typename _HTy>
template<typename _HTy2 >
WeakHandle& winux::WeakHandle< _HTy >::operator= ( WeakHandle< _HTy2 > const &  other)
inline

在文件 smartptr.hpp 第 784 行定义.

template<typename _HTy>
void winux::WeakHandle< _HTy >::reset ( )
inline

在文件 smartptr.hpp 第 790 行定义.

友元及相关函数文档

template<typename _HTy>
template<typename _HTy0 >
friend class WeakHandle
friend

在文件 smartptr.hpp 第 846 行定义.

类成员变量说明

template<typename _HTy>
WeakHandleData winux::WeakHandle< _HTy >::_self
protected

在文件 smartptr.hpp 第 843 行定义.


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