|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <SharedPtr.hpp>
Public 成员函数 | |
| SharedPtr (std::nullptr_t) | |
| SharedPtr (_Object *obj) | |
| SharedPtr (const SharedPtr &ptr) | |
| SharedPtr & | operator= (const SharedPtr &ptr) |
| SharedPtr & | operator= (_Object *obj) |
| SharedPtr & | operator= (std::nullptr_t) |
| operator _Object * () const | |
| operator bool () const | |
| _Object * | operator-> () const |
| _Object * | get () const |
| _Object * | take () |
| void | reset () |
Protected 成员函数 | |
| void | _incRef () |
| void | _decRef () |
Protected 属性 | |
| _Object * | m_object {nullptr} |
共享指针
| _Object | 指向的对象类型 |
与std::shared_ptr功能类似,但是不支持自定义删除器