Open 3D Engine EMotionFX Gem API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
#include <RefCounted.h>
Inherited by EMotionFX::ActorInstance, EMotionFX::ActorManager, EMotionFX::ActorUpdateScheduler, EMotionFX::AnimGraphInstance, EMotionFX::AnimGraphManager, EMotionFX::AnimGraphObjectData, EMotionFX::Attachment, EMotionFX::BlendSpaceManager, EMotionFX::BlendSpaceParamEvaluator, EMotionFX::ChunkProcessor, EMotionFX::EMotionFXManager, EMotionFX::EventManager, EMotionFX::Importer, EMotionFX::LayerPass, EMotionFX::Mesh, EMotionFX::MeshDeformer, EMotionFX::MeshDeformerStack, EMotionFX::MorphSetup, EMotionFX::MorphSetupInstance, EMotionFX::MorphTarget, EMotionFX::MorphTargetStandard::DeformData, EMotionFX::Motion, EMotionFX::MotionInstance, EMotionFX::MotionInstancePool, EMotionFX::MotionManager, EMotionFX::MotionQueue, EMotionFX::MotionSystem, EMotionFX::Node, EMotionFX::NodeAttribute, EMotionFX::NodeMap, EMotionFX::Recorder, EMotionFX::SharedData, EMotionFX::Skeleton, EMotionFX::SoftSkinManager, EMotionFX::SubMesh, EMotionFX::ThreadData, EMotionFX::TransformData, and EMotionFX::VertexAttributeLayer.
Public Member Functions | |
RefCounted () | |
virtual | ~RefCounted () |
void | IncreaseReferenceCount () |
void | DecreaseReferenceCount () |
void | Destroy () |
uint32 | GetReferenceCount () const |
Protected Member Functions | |
virtual void | Delete () |
The reference counter class.
MCore::RefCounted::RefCounted | ( | ) |
The constructor. Sets the initial reference count to 1.
|
virtual |
The destructor.
void MCore::RefCounted::DecreaseReferenceCount | ( | ) |
Decrease the reference count. The Destroy method already calls this.
void MCore::RefCounted::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.
uint32 MCore::RefCounted::GetReferenceCount | ( | ) | const |
Get the current reference count on this object.
void MCore::RefCounted::IncreaseReferenceCount | ( | ) |
Increase the reference count by one.