Open 3D Engine EMotionFX Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
MCore::MCoreSystem Class Reference

#include <MCoreSystem.h>

Public Member Functions

MCORE_INLINE LogManagerGetLogManager ()
 
MCORE_INLINE IDGeneratorGetIDGenerator ()
 
MCORE_INLINE StringIdPoolGetStringIdPool ()
 
MCORE_INLINE AttributeFactoryGetAttributeFactory ()
 
MCORE_INLINE MemoryTrackerGetMemoryTracker ()
 
MCORE_INLINE bool GetIsTrackingMemory () const
 
MCORE_INLINE void * GetMemTempBuffer ()
 
MCORE_INLINE size_t GetMemTempBufferSize () const
 
void MemTempBufferAssureSize (size_t numBytes)
 
void MemTempBufferFree ()
 
void RegisterMemoryCategories (MemoryTracker &memTracker)
 
MCORE_INLINE MutexGetMemoryMutex ()
 
MCORE_INLINE AllocateCallback GetAllocateFunction ()
 
MCORE_INLINE ReallocCallback GetReallocFunction ()
 
MCORE_INLINE FreeCallback GetFreeFunction ()
 

Friends

class Initializer
 

Detailed Description

The core main system, which stores some manager objects. This includes a memory manager, coordinate system converter and log manager. An instance from this class can be accessed with the MCore::gMCore global variable. This global object is created when you call MCore::Init() and it is deleted when you call MCore::Shutdown(). Please keep in mind that you do not have any more allocations such as string or array allocations remaining after you call the Shutdown method. Also don't create any String or Array allocations before MCore::Init() has been called.

Member Function Documentation

◆ GetAttributeFactory()

MCORE_INLINE AttributeFactory & MCore::MCoreSystem::GetAttributeFactory ( )
inline

Get the attribute factory.

Returns
A reference to the attribute factory, which is used to create attributes of a certain type.

◆ GetIDGenerator()

MCORE_INLINE IDGenerator & MCore::MCoreSystem::GetIDGenerator ( )
inline

Get the ID generator.

Returns
A reference to the ID generator.

◆ GetLogManager()

MCORE_INLINE LogManager & MCore::MCoreSystem::GetLogManager ( )
inline

Get the log manager.

Returns
A reference to the log manager.

◆ GetMemoryTracker()

MCORE_INLINE MemoryTracker & MCore::MCoreSystem::GetMemoryTracker ( )
inline

Get the memory tracker.

Returns
A reference to the memory tracker, which can be used to track memory allocations and usage.

◆ GetStringIdPool()

MCORE_INLINE StringIdPool & MCore::MCoreSystem::GetStringIdPool ( )
inline

Get the string based ID generator.

Returns
A reference to the string based ID generator.

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