fastdo  0.5.12
winux::WeakPointer< _Ty > 模板类 参考

弱指针 更多...

#include <smartptr.hpp>

类 winux::WeakPointer< _Ty > 继承关系图:
winux::WeakPointer< _Ty > 的协作图:

Public 类型

typedef WeakHandle< _Ty * > MyBase
 
typedef _Ty Type
 
- Public 类型 继承自 winux::WeakHandle< _Ty * >
typedef _Ty * HType
 
typedef SharedHandle< _Ty * >::SharedHandleData WeakHandleData
 

Public 成员函数

 WeakPointer ()
 
template<typename _Ty2 >
 WeakPointer (SharedPointer< _Ty2 > const &other)
 
template<typename _Ty2 >
WeakPointeroperator= (SharedPointer< _Ty2 > const &other)
 
 WeakPointer (WeakPointer const &other)
 
WeakPointeroperator= (WeakPointer const &other)
 
template<typename _Ty2 >
 WeakPointer (WeakPointer< _Ty2 > const &other)
 
template<typename _Ty2 >
WeakPointeroperator= (WeakPointer< _Ty2 > const &other)
 
SharedPointer< _Ty > lock () const
 
- Public 成员函数 继承自 winux::WeakHandle< _Ty * >
 WeakHandle ()
 
 WeakHandle (SharedHandle< _HTy2 > const &other)
 
 WeakHandle (WeakHandle const &other)
 
 WeakHandle (WeakHandle< _HTy2 > const &other)
 
virtual ~WeakHandle ()
 
WeakHandleoperator= (SharedHandle< _HTy2 > const &other)
 
WeakHandleoperator= (WeakHandle const &other)
 
WeakHandleoperator= (WeakHandle< _HTy2 > const &other)
 
void reset ()
 
SharedHandle< _Ty * > lock () const
 
bool expired () const
 是否过期 更多...
 
 operator bool ()
 
 operator bool () const
 

友元

template<typename _Ty0 >
class WeakPointer
 

额外继承的成员函数

- Protected 成员函数 继承自 winux::WeakHandle< _Ty * >
bool _sharedReset (SharedHandle< _HTy2 > *pSharedHandle) const
 Shared*PTR* call reset。用于从Weak*PTR*创建Shared*PTR*. 更多...
 
void _reset (_HTy2 otherH, SharedDeleterContext *otherCtx)
 增加另一个弱引用计数,减少自身弱计数。管理另一个Weak*PTR* 更多...
 
void _reset (WeakHandle< _HTy2 > const &other)
 增加另一个弱引用计数,减少自身弱计数。管理另一个Weak*PTR* 更多...
 
- Protected 属性 继承自 winux::WeakHandle< _Ty * >
WeakHandleData _self
 

详细描述

template<typename _Ty>
class winux::WeakPointer< _Ty >

弱指针

在文件 smartptr.hpp851 行定义.

成员类型定义说明

template<typename _Ty>
typedef WeakHandle<_Ty*> winux::WeakPointer< _Ty >::MyBase

在文件 smartptr.hpp854 行定义.

template<typename _Ty>
typedef _Ty winux::WeakPointer< _Ty >::Type

在文件 smartptr.hpp855 行定义.

构造及析构函数说明

template<typename _Ty>
winux::WeakPointer< _Ty >::WeakPointer ( )
inline

在文件 smartptr.hpp857 行定义.

template<typename _Ty>
template<typename _Ty2 >
winux::WeakPointer< _Ty >::WeakPointer ( SharedPointer< _Ty2 > const &  other)
inline

在文件 smartptr.hpp860 行定义.

template<typename _Ty>
winux::WeakPointer< _Ty >::WeakPointer ( WeakPointer< _Ty > const &  other)
inline

在文件 smartptr.hpp872 行定义.

template<typename _Ty>
template<typename _Ty2 >
winux::WeakPointer< _Ty >::WeakPointer ( WeakPointer< _Ty2 > const &  other)
inline

在文件 smartptr.hpp884 行定义.

成员函数说明

template<typename _Ty>
SharedPointer<_Ty> winux::WeakPointer< _Ty >::lock ( ) const
inline

在文件 smartptr.hpp896 行定义.

template<typename _Ty>
template<typename _Ty2 >
WeakPointer& winux::WeakPointer< _Ty >::operator= ( SharedPointer< _Ty2 > const &  other)
inline

在文件 smartptr.hpp866 行定义.

template<typename _Ty>
WeakPointer& winux::WeakPointer< _Ty >::operator= ( WeakPointer< _Ty > const &  other)
inline

在文件 smartptr.hpp877 行定义.

template<typename _Ty>
template<typename _Ty2 >
WeakPointer& winux::WeakPointer< _Ty >::operator= ( WeakPointer< _Ty2 > const &  other)
inline

在文件 smartptr.hpp890 行定义.

友元及相关函数文档

template<typename _Ty>
template<typename _Ty0 >
friend class WeakPointer
friend

在文件 smartptr.hpp904 行定义.


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