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.
MCore::RefCounted Class Reference

#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 ()
 

Detailed Description

The reference counter class.

Constructor & Destructor Documentation

◆ RefCounted()

MCore::RefCounted::RefCounted ( )

The constructor. Sets the initial reference count to 1.

◆ ~RefCounted()

virtual MCore::RefCounted::~RefCounted ( )
virtual

The destructor.

Member Function Documentation

◆ DecreaseReferenceCount()

void MCore::RefCounted::DecreaseReferenceCount ( )

Decrease the reference count. The Destroy method already calls this.

◆ Destroy()

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.

◆ GetReferenceCount()

uint32 MCore::RefCounted::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::RefCounted::IncreaseReferenceCount ( )

Increase the reference count by one.


The documentation for this class was generated from the following file: