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 >
WeakHandleoperator= (SharedHandle< _HTy2 > const &other)
 
 WeakHandle (WeakHandle const &other)
 
WeakHandleoperator= (WeakHandle const &other)
 
template<typename _HTy2 >
 WeakHandle (WeakHandle< _HTy2 > const &other)
 
template<typename _HTy2 >
WeakHandleoperator= (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.hpp739 行定义.

成员类型定义说明

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

在文件 smartptr.hpp742 行定义.

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

在文件 smartptr.hpp744 行定义.

构造及析构函数说明

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

在文件 smartptr.hpp746 行定义.

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

在文件 smartptr.hpp748 行定义.

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

在文件 smartptr.hpp754 行定义.

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

在文件 smartptr.hpp766 行定义.

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

在文件 smartptr.hpp778 行定义.

成员函数说明

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

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

在文件 smartptr.hpp826 行定义.

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

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

在文件 smartptr.hpp838 行定义.

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.hpp813 行定义.

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

是否过期

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

在文件 smartptr.hpp805 行定义.

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

在文件 smartptr.hpp795 行定义.

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

在文件 smartptr.hpp807 行定义.

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

在文件 smartptr.hpp808 行定义.

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

在文件 smartptr.hpp760 行定义.

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

在文件 smartptr.hpp771 行定义.

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

在文件 smartptr.hpp784 行定义.

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

在文件 smartptr.hpp790 行定义.

友元及相关函数文档

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

在文件 smartptr.hpp846 行定义.

类成员变量说明

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

在文件 smartptr.hpp843 行定义.


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