162 MxBool operator!=(
const MxAtomId& p_atomId)
const {
return this->m_internal != p_atomId.m_internal; }
175 MxBool operator==(
const char* p_internal)
const {
return p_internal && !strcmp(m_internal, p_internal); }
222 const char* m_internal;
[AI] Atomized (unique) string identifier, managed by reference counting.
MxBool operator==(const char *p_internal) const
[AI] Tests equality against a raw string, using a direct string comparison.
const char * GetInternal() const
[AI] Returns a pointer to the internal string, or nullptr if not set.
void Clear()
[AI] Disassociates the atom ID from any atom (decrements reference count, sets internal pointer to NU...
~MxAtomId()
[AI] Destructor for atom ID.
MxAtomId()
[AI] Constructs a null/empty atom ID.
MxBool operator==(const MxAtomId &p_atomId) const
[AI] Tests for equality with another atom ID based on the internal string pointer.
MxAtomId & operator=(const MxAtomId &p_atomId)
[AI] Copy assignment operator.
[AI] Set of unique atom pointers, managed with custom comparison for atomization and fast lookup.
[AI] Key-value pair representing a unique string (atom) and its reference count.
MxString & GetKey()
[AI] Gets the atom key (the string stored in this atom).
void Dec()
[AI] Decrements the usage count for this atom.
void Inc()
[AI] Increments the usage count for this atom, indicating one more client is using it.
MxAtom(const char *p_str)
[AI] Constructs an MxAtom with the given string as the key.
Mindscape custom string class for managing dynamic C-strings within the game engine.
char * GetData() const
Returns a pointer to the internal character buffer.
LookupMode
[AI] Lookup mode used to control case sensitivity and normalization when atomizing strings.
@ e_upperCase
[AI] Convert the string to upper case before matching/creating.
@ e_lowerCase2
[AI] Alternative or legacy lower case mode, functionally equivalent to e_lowerCase.
@ e_exact
[AI] Match the string exactly, no case change.
@ e_lowerCase
[AI] Convert the string to lower case before matching/creating.
#define set
[AI] Macro alias for Set<K, Pr>, replacing std::set<K>.
[AI] STL compatibility layer header to provide consistent STL (Standard Template Library) types and a...
[AI] Functor for comparing two MxAtom pointers based on their keys (strings).
int operator()(MxAtom *const &p_val0, MxAtom *const &p_val1) const
[AI] Compares two atom pointers lexicographically by their string keys.