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::StringIdPool Class Reference

Public Member Functions

AZ::u32 GenerateIdForStringWithoutLock (const AZStd::string &objectName)
 
AZ::u32 GenerateIdForString (const AZStd::string &objectName)
 
const AZStd::string & GetName (AZ::u32 id)
 
void Reserve (size_t numStrings)
 
void Log (bool includeEntries=true)
 
void Clear ()
 
void Lock ()
 
void Unlock ()
 

Friends

class Initializer
 
class MCoreSystem
 

Member Function Documentation

◆ GenerateIdForString()

AZ::u32 MCore::StringIdPool::GenerateIdForString ( const AZStd::string &  objectName)

Generate a unique id for the given string which contains the object name. This method is thread safe.

Parameters
objectNameThe name of the node to generate an id for.
Returns
The unique id of the given object.

◆ GenerateIdForStringWithoutLock()

AZ::u32 MCore::StringIdPool::GenerateIdForStringWithoutLock ( const AZStd::string &  objectName)

Generate a unique id for the given string which contains the object name. This method is not thread safe.

Parameters
objectNameThe name of the node to generate an id for.
Returns
The unique id of the given object.

◆ GetName()

const AZStd::string & MCore::StringIdPool::GetName ( AZ::u32  id)

Return the name of the given id.

Parameters
idThe unique id to search for the name.
Returns
The name of the given object.

◆ Reserve()

void MCore::StringIdPool::Reserve ( size_t  numStrings)

Reserve space for a given amount of strings.

Parameters
numStringsThe number of strings to reserve space for.

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