4#if ALIB_MONOMEM && ALIB_CONTAINERS
26 #if ALIB_MONOMEM && ALIB_CONTAINERS
27 ENUM_RECORD_MAP.EmplaceIfNotExistent(
EnumRecordKey(rtti, elementValue ), record );
29 ENUM_RECORD_MAP.try_emplace(
EnumRecordKey(rtti, elementValue ), record );
35#if ALIB_MONOMEM && ALIB_CONTAINERS
36 auto it= ENUM_RECORD_MAP.Find(
EnumRecordKey( rtti, elementValue ) );
38 auto it= ENUM_RECORD_MAP.find(
EnumRecordKey( rtti, elementValue ) );
40 if ( it != ENUM_RECORD_MAP.end() )
46#if ALIB_MONOMEM && ALIB_CONTAINERS
48 EnumRecordKey,
const void*,
52std::unordered_map< EnumRecordKey,
const void*,
HashMap< MonoAllocator, EnumRecordKey, const void *, EnumRecordKey::Hash, EnumRecordKey::EqualTo > ENUM_RECORD_MAP
Global directory to find enum records.
Details of namespace #"alib::enumrecords;2".
void setEnumRecord(const std::type_info &rtti, integer elementValue, const void *record)
const void * getEnumRecord(const std::type_info &rtti, integer elementValue)
HashMap< MonoAllocator, EnumRecordKey, const void *, EnumRecordKey::Hash, EnumRecordKey::EqualTo > & getInternalRecordMap()
TMonoAllocator< lang::HeapAllocator > GLOBAL_ALLOCATOR
monomem::TMonoAllocator< lang::HeapAllocator > MonoAllocator
lang::integer integer
Type alias in namespace #"%alib".
containers::HashMap< TAllocator, TKey, TMapped, THash, TEqual, THashCaching, TRecycling > HashMap
Type alias in namespace #"%alib".
String EnumElementName
The name of the enum element.
int MinimumRecognitionLength
EnumRecordPrototype() noexcept=default
static void Get(String &result, bool isLastField=false)
Compare functor for this key type.
Hash functor for this key type.