#include <MemoryObject.h>
Inherited by EMotionFX::BaseObject.
The reference counter class.
◆ MemoryObject()
MCore::MemoryObject::MemoryObject |
( |
| ) |
|
The constructor. Sets the initial reference count to 1.
◆ ~MemoryObject()
virtual MCore::MemoryObject::~MemoryObject |
( |
| ) |
|
|
virtual |
◆ DecreaseReferenceCount()
void MCore::MemoryObject::DecreaseReferenceCount |
( |
| ) |
|
Decrease the reference count. The Destroy method already calls this.
◆ Delete()
virtual void MCore::MemoryObject::Delete |
( |
| ) |
|
|
protectedvirtual |
◆ Destroy()
void MCore::MemoryObject::Destroy |
( |
| ) |
|
Destroy the object, like you would delete it. This internally decreases the reference count. It will only really delete once the reference count reaches zero.
◆ GetReferenceCount()
uint32 MCore::MemoryObject::GetReferenceCount |
( |
| ) |
const |
Get the current reference count on this object.
- Returns
- The reference count, which indicates how many objects reference this one.
◆ IncreaseReferenceCount()
void MCore::MemoryObject::IncreaseReferenceCount |
( |
| ) |
|
Increase the reference count by one.
The documentation for this class was generated from the following file:
- Gems/EMotionFX/Code/MCore/Source/MemoryObject.h