|
fastdo
0.5.12
|
引用计数共享句柄,管理各种资源的自动释放 更多...
#include <smartptr.hpp>

类 | |
| struct | SharedHandleData |
Public 类型 | |
| typedef _HTy | HType |
Public 成员函数 | |
| SharedHandle () | |
| SharedHandle (_HTy h, _HTy failVal) | |
| template<typename _Dt > | |
| SharedHandle (_HTy h, _HTy failVal, _Dt dt) | |
| template<typename _HTy2 > | |
| SharedHandle (_HTy2 h, _HTy2 failVal) | |
| template<typename _HTy2 , typename _Dt > | |
| SharedHandle (_HTy2 h, _HTy2 failVal, _Dt dt) | |
| virtual | ~SharedHandle () |
| SharedHandle (SharedHandle const &other) | |
| SharedHandle & | operator= (SharedHandle const &other) |
| template<typename _HTy2 > | |
| SharedHandle (SharedHandle< _HTy2 > const &other) | |
| template<typename _HTy2 > | |
| SharedHandle & | operator= (SharedHandle< _HTy2 > const &other) |
| void | attachNew (_HTy h, _HTy failVal) |
| template<typename _Dt > | |
| void | attachNew (_HTy h, _HTy failVal, _Dt dt) |
| template<typename _HTy2 > | |
| void | attachNew (_HTy2 h, _HTy2 failVal) |
| template<typename _HTy2 , typename _Dt > | |
| void | attachNew (_HTy2 h, _HTy2 failVal, _Dt dt) |
| void | attach (SharedHandleData const &data, bool isIncRef) |
| 管理一个资源 更多... | |
| template<typename _HTy2 > | |
| void | attach (typename SharedHandle< _HTy2 >::SharedHandleData const &data, bool isIncRef) |
| 管理一个资源 更多... | |
| template<typename _HTy2 > | |
| void | attach (_HTy2 h, SharedDeleterContext *ctx, bool isIncRef) |
| 管理一个资源 更多... | |
| SharedHandleData | detach () |
| SharedHandleData | peek () const |
| void | reset () |
| _HTy | get () const |
| operator bool () const | |
| _HTy | operator-> () |
| _HTy | operator-> () const |
Protected 成员函数 | |
| template<typename _HTy2 > | |
| void | _reset0 (_HTy2 newH, SharedDeleterContext *newCtx) |
| 减少自身引用计数,管理新资源 更多... | |
| template<typename _HTy2 > | |
| void | _reset (_HTy2 otherH, SharedDeleterContext *otherCtx) |
| 增加另一个shared的资源引用计数,减少自身计数。管理另一个shared的资源 更多... | |
| template<typename _HTy2 > | |
| void | _reset (SharedHandle< _HTy2 > const &other) |
| 增加另一个shared的资源引用计数,减少自身计数。管理另一个shared的资源 更多... | |
Protected 属性 | |
| SharedHandleData | _self |
友元 | |
| template<typename _HTy0 > | |
| class | SharedHandle |
| template<typename _HTy0 > | |
| class | WeakHandle |
引用计数共享句柄,管理各种资源的自动释放
可以赋值,还能指定一个failVal指示资源分配失败后的句柄值,当不等于这个值时才会创建删除器场景释放资源
在文件 smartptr.hpp 第 439 行定义.
| typedef _HTy winux::SharedHandle< _HTy >::HType |
在文件 smartptr.hpp 第 442 行定义.
|
inline |
在文件 smartptr.hpp 第 453 行定义.
|
inline |
在文件 smartptr.hpp 第 455 行定义.
|
inline |
在文件 smartptr.hpp 第 458 行定义.
|
inline |
在文件 smartptr.hpp 第 461 行定义.
|
inline |
在文件 smartptr.hpp 第 464 行定义.
|
inlinevirtual |
在文件 smartptr.hpp 第 466 行定义.
|
inline |
在文件 smartptr.hpp 第 471 行定义.
|
inline |
在文件 smartptr.hpp 第 483 行定义.
|
inlineprotected |
增加另一个shared的资源引用计数,减少自身计数。管理另一个shared的资源
在文件 smartptr.hpp 第 616 行定义.
|
inlineprotected |
增加另一个shared的资源引用计数,减少自身计数。管理另一个shared的资源
在文件 smartptr.hpp 第 625 行定义.
|
inlineprotected |
减少自身引用计数,管理新资源
在文件 smartptr.hpp 第 606 行定义.
|
inline |
管理一个资源
若资源是从另一个shared::detach()而来,则isIncRef应设为false;
若资源是新建而来,则isIncRef应设为false;
若资源是从另一个shared窥视而来,则isIncRef应设为true。
在文件 smartptr.hpp 第 523 行定义.
|
inline |
管理一个资源
若资源是新建而来,则isIncRef应设为false;
若资源是从另一个shared::detach()而来,则isIncRef应设为false;
若资源是从另一个shared窥视而来,则isIncRef应设为true。
在文件 smartptr.hpp 第 541 行定义.
|
inline |
管理一个资源
若资源是新建而来,则isIncRef应设为false;
若资源是从另一个shared::detach()而来,则isIncRef应设为false;
若资源是从另一个shared窥视而来,则isIncRef应设为true。
在文件 smartptr.hpp 第 559 行定义.
|
inline |
在文件 smartptr.hpp 第 495 行定义.
|
inline |
在文件 smartptr.hpp 第 501 行定义.
|
inline |
在文件 smartptr.hpp 第 507 行定义.
|
inline |
在文件 smartptr.hpp 第 513 行定义.
|
inline |
在文件 smartptr.hpp 第 571 行定义.
|
inline |
在文件 smartptr.hpp 第 589 行定义.
|
inline |
在文件 smartptr.hpp 第 591 行定义.
|
inline |
在文件 smartptr.hpp 第 593 行定义.
|
inline |
在文件 smartptr.hpp 第 598 行定义.
|
inline |
在文件 smartptr.hpp 第 476 行定义.
|
inline |
在文件 smartptr.hpp 第 489 行定义.
|
inline |
在文件 smartptr.hpp 第 579 行定义.
|
inline |
在文件 smartptr.hpp 第 584 行定义.
在文件 smartptr.hpp 第 633 行定义.
在文件 smartptr.hpp 第 635 行定义.
|
protected |
在文件 smartptr.hpp 第 630 行定义.