| 
    fastdo
    0.5.12
    
   | 
 
简单句柄类,管理各种资源的自动释放,赋值相当于传递管理权。 更多...
#include <smartptr.hpp>

类 | |
| struct | SimpleHandleData | 
Public 类型 | |
| typedef _HTy | HType | 
Public 成员函数 | |
| SimpleHandle () | |
| SimpleHandle (_HTy h, _HTy failVal) | |
| template<typename _Dt > | |
| SimpleHandle (_HTy h, _HTy failVal, _Dt dt) | |
| template<typename _HTy2 > | |
| SimpleHandle (_HTy2 h, _HTy2 failVal) | |
| template<typename _HTy2 , typename _Dt > | |
| SimpleHandle (_HTy2 h, _HTy2 failVal, _Dt dt) | |
| virtual | ~SimpleHandle () | 
| SimpleHandle (SimpleHandle const &other) | |
| SimpleHandle & | operator= (SimpleHandle const &other) | 
| template<typename _HTy2 > | |
| SimpleHandle (SimpleHandle< _HTy2 > const &other) | |
| template<typename _HTy2 > | |
| SimpleHandle & | operator= (SimpleHandle< _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 (SimpleHandleData const &data) | 
| template<typename _HTy2 > | |
| void | attach (typename SimpleHandle< _HTy2 >::SimpleHandleData const &data) | 
| template<typename _HTy2 > | |
| void | attach (_HTy2 h, SimpleDeleterContext *ctx) | 
| SimpleHandleData | detach () | 
| void | reset () | 
| _HTy | get () const | 
| operator bool () const | |
| _HTy | operator-> () | 
| _HTy | operator-> () const | 
Protected 成员函数 | |
| template<typename _HTy2 > | |
| void | _reset0 (_HTy2 newH, SimpleDeleterContext *newCtx) | 
| 释放自身资源,管理新资源  更多... | |
| template<typename _HTy2 > | |
| void | _reset (_HTy2 &otherH, SimpleDeleterContext *&otherCtx) | 
| 释放自身资源,接管另一个simple的资源,另一个simple置零  更多... | |
| template<typename _HTy2 > | |
| void | _reset (SimpleHandle< _HTy2 > const &other) | 
| 释放自身资源,接管另一个simple的资源,另一个simple置零  更多... | |
Protected 属性 | |
| SimpleHandleData | _self | 
友元 | |
| template<typename _HTy0 > | |
| class | SimpleHandle | 
简单句柄类,管理各种资源的自动释放,赋值相当于传递管理权。
如 ptr2 = ptr1; ptr1将管理权传递到ptr2, ptr1失效. 还能指定一个failVal指示资源分配失败后的句柄值,当不等于这个值时才会创建删除器场景释放资源
在文件 smartptr.hpp 第 75 行定义.
| typedef _HTy winux::SimpleHandle< _HTy >::HType | 
在文件 smartptr.hpp 第 78 行定义.
      
  | 
  inline | 
在文件 smartptr.hpp 第 88 行定义.
      
  | 
  inline | 
在文件 smartptr.hpp 第 90 行定义.
      
  | 
  inline | 
在文件 smartptr.hpp 第 93 行定义.
      
  | 
  inline | 
在文件 smartptr.hpp 第 96 行定义.
      
  | 
  inline | 
在文件 smartptr.hpp 第 99 行定义.
      
  | 
  inlinevirtual | 
在文件 smartptr.hpp 第 101 行定义.
      
  | 
  inline | 
在文件 smartptr.hpp 第 106 行定义.
      
  | 
  inline | 
在文件 smartptr.hpp 第 118 行定义.
      
  | 
  inlineprotected | 
释放自身资源,接管另一个simple的资源,另一个simple置零
在文件 smartptr.hpp 第 209 行定义.
      
  | 
  inlineprotected | 
释放自身资源,接管另一个simple的资源,另一个simple置零
在文件 smartptr.hpp 第 218 行定义.
      
  | 
  inlineprotected | 
释放自身资源,管理新资源
在文件 smartptr.hpp 第 199 行定义.
      
  | 
  inline | 
在文件 smartptr.hpp 第 152 行定义.
      
  | 
  inline | 
在文件 smartptr.hpp 第 158 行定义.
      
  | 
  inline | 
在文件 smartptr.hpp 第 164 行定义.
      
  | 
  inline | 
在文件 smartptr.hpp 第 130 行定义.
      
  | 
  inline | 
在文件 smartptr.hpp 第 136 行定义.
      
  | 
  inline | 
在文件 smartptr.hpp 第 142 行定义.
      
  | 
  inline | 
在文件 smartptr.hpp 第 147 行定义.
      
  | 
  inline | 
在文件 smartptr.hpp 第 169 行定义.
      
  | 
  inline | 
在文件 smartptr.hpp 第 182 行定义.
      
  | 
  inline | 
在文件 smartptr.hpp 第 184 行定义.
      
  | 
  inline | 
在文件 smartptr.hpp 第 186 行定义.
      
  | 
  inline | 
在文件 smartptr.hpp 第 191 行定义.
      
  | 
  inline | 
在文件 smartptr.hpp 第 111 行定义.
      
  | 
  inline | 
在文件 smartptr.hpp 第 124 行定义.
      
  | 
  inline | 
在文件 smartptr.hpp 第 177 行定义.
在文件 smartptr.hpp 第 227 行定义.
      
  | 
  protected | 
在文件 smartptr.hpp 第 224 行定义.