OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
aObject.h File Reference

Go to the source code of this file.

Classes

class  ak::aObject
 This class is used to store the main information of any object used Information contained is the UID and the reference counter. More...
 

Namespaces

namespace  ak
 

Macros

#define A_OBJECT_DESTROYING_WITHOWNER   if (m_owner != nullptr) { ak::aObject * obj = m_owner->parentObject(); if (obj != nullptr) { obj->removeChildObject(m_owner); } }
 Use to notify the parent object that this object is currently destroying.
 
#define A_OBJECT_DESTROYING_WITHPARENT   if (m_parentObject != nullptr) { m_parentObject->removeChildObject(this); m_parentObject = nullptr; }
 
#define A_OBJECT_DESTROYING   A_OBJECT_DESTROYING_WITHOWNER else A_OBJECT_DESTROYING_WITHPARENT
 

Macro Definition Documentation

◆ A_OBJECT_DESTROYING

#define A_OBJECT_DESTROYING   A_OBJECT_DESTROYING_WITHOWNER else A_OBJECT_DESTROYING_WITHPARENT

◆ A_OBJECT_DESTROYING_WITHOWNER

#define A_OBJECT_DESTROYING_WITHOWNER   if (m_owner != nullptr) { ak::aObject * obj = m_owner->parentObject(); if (obj != nullptr) { obj->removeChildObject(m_owner); } }

Use to notify the parent object that this object is currently destroying.

◆ A_OBJECT_DESTROYING_WITHPARENT

#define A_OBJECT_DESTROYING_WITHPARENT   if (m_parentObject != nullptr) { m_parentObject->removeChildObject(this); m_parentObject = nullptr; }