#include <ObjectId.h>
Public Member Functions | |
ObjectId (const ObjectId &id) | |
ObjectId (AZ::u64 id) | |
operator AZ::u64 () const | |
AZStd::string | ToString () const |
bool | IsValid () const |
void | SetInvalid () |
bool | operator== (const ObjectId &rhs) const |
bool | operator!= (const ObjectId &rhs) const |
Static Public Member Functions | |
static ObjectId | Create () |
static ObjectId | CreateFromString (const AZStd::string &text) |
static void | Reflect (AZ::ReflectContext *context) |
Static Public Attributes | |
static const ObjectId | InvalidId |
Protected Attributes | |
AZ::u64 | m_id |
Object ID type. IDs are used to uniquely identify objects.
|
static |
Generate a random and valid id.
|
static |
Convert the given string to an id.
[in] | text | The string to parse and convert. |
bool EMotionFX::ObjectId::IsValid | ( | ) | const |
Determines whether this id is valid. An id is invalid if you did not provide an argument to the constructor.
|
inline |
Casts the id to u64. Needed for reflection.
bool EMotionFX::ObjectId::operator!= | ( | const ObjectId & | rhs | ) | const |
Compare two ids for inequality.
rhs | Id to compare against. |
bool EMotionFX::ObjectId::operator== | ( | const ObjectId & | rhs | ) | const |
Compare two ids for equality.
rhs | Id to compare against. |
void EMotionFX::ObjectId::SetInvalid | ( | ) |
Set the id to the invalid value.
AZStd::string EMotionFX::ObjectId::ToString | ( | ) | const |
Convert the id to a string and return it.