|
fastdo
0.6.16
|
成员包装 更多...
#include <utilities.hpp>
Public 成员函数 | |
| MembersWrapper () | |
| MembersWrapper & | operator= (MembersWrapper const &other) |
| 拷贝赋值,必须保证create()已经调用 更多... | |
| MembersWrapper (MembersWrapper &&other) | |
| MembersWrapper & | operator= (MembersWrapper &&other) |
| 移动赋值,不用保证create()已经调用 更多... | |
| void | destroy () |
| 必须在使用者类的析构函数里最后一个调用 更多... | |
| template<typename... _ArgType> | |
| void | create (_ArgType &&...arg) |
| 必须在使用者类的构造函数里第一个调用 更多... | |
| _TargetCls * | get () const |
| _TargetCls * | operator-> () |
| _TargetCls const * | operator-> () const |
| operator _TargetCls & () | |
| operator _TargetCls const & () const | |
| operator bool () const | |
成员包装
此类的构造函数/析构函数不能直接调用create()/destroy(),因为目标类的实现未知,所以无法创建或销毁。
必须要在使用本包装的类中的构造函数/析构函数中分别调用它们。
operator=和拷贝构造也是类似。因为目标类的实现未知,所以无法依靠自动生成的函数来自动调用。必须重写使用本包装的类中的operator=和拷贝构造函数
在文件 utilities.hpp 第 431 行定义.
|
inline |
在文件 utilities.hpp 第 434 行定义.
|
inline |
在文件 utilities.hpp 第 447 行定义.
|
inline |
拷贝赋值,必须保证create()已经调用
在文件 utilities.hpp 第 437 行定义.
|
inline |
移动赋值,不用保证create()已经调用
在文件 utilities.hpp 第 453 行定义.
|
inline |
必须在使用者类的析构函数里最后一个调用
在文件 utilities.hpp 第 466 行定义.
|
inline |
必须在使用者类的构造函数里第一个调用
在文件 utilities.hpp 第 477 行定义.
|
inline |
在文件 utilities.hpp 第 483 行定义.
|
inline |
在文件 utilities.hpp 第 488 行定义.
|
inline |
在文件 utilities.hpp 第 492 行定义.
|
inline |
在文件 utilities.hpp 第 497 行定义.
|
inline |
在文件 utilities.hpp 第 501 行定义.
|
inline |
在文件 utilities.hpp 第 506 行定义.