|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
类 ast::Referenced 继承关系图:Public 成员函数 | |
| Referenced (initial_strong_ref_t) | |
| uint32_t | refCount () const |
| uint32_t | weakRefCount () const |
| bool | isDestructed () const |
| void | destruct () |
| uint32_t | incWeakRef () |
| uint32_t | decWeakRef () |
| uint32_t | incRef () |
| uint32_t | decRef () |
| uint32_t | decRefNoDelete () |
Protected 成员函数 | |
| void | setDestructed () |
友元 | |
| A_ALWAYS_INLINE friend uint32_t | aObject_IncRef (Referenced *obj) |
| A_ALWAYS_INLINE friend uint32_t | aObject_DecRef (Referenced *obj) |
| A_ALWAYS_INLINE friend uint32_t | aObject_IncWeakRef (Referenced *obj) |
| A_ALWAYS_INLINE friend uint32_t | aObject_DecWeakRef (Referenced *obj) |
| A_ALWAYS_INLINE friend bool | aObject_IsDestructed (const Referenced *obj) |
|
inlineexplicit |
构造函数,用于初始化对象的强引用计数为1
| initial_strong_ref_t | 初始化强引用计数的标记 |
|
inline |
减少强引用计数
|
inline |
减少强引用计数,不删除对象
|
inline |
减少弱引用计数
|
inline |
析构对象,仅当强引用计数为0时才会被调用
析构对象时,会先将弱引用计数减1,若弱引用计数为0,则会调用析构函数
|
inline |
增加强引用计数
|
inline |
增加弱引用计数
|
inline |
判断对象是否被析构
|
inline |
获取强引用计数
|
inline |
获取弱引用计数