top | up | prev | next

ClassIdMap Class

Definition at line 26 of Classes.cpp

Member Functions

void Done() static
boost::multiprecision::uint128_t GetClassId(const boost::uuids::uuid& typeId) const
void Init() static
ClassIdMap& Instance() static
void SetClassId(const boost::uuids::uuid& typeId, const boost::multiprecision::uint128_t& classId)

Member Variables

std::unordered_map<boost::uuids::uuid, boost::multiprecision::uint128_t, boost::hash<boost::uuids::uuid>> classIdMap
std::unique_ptr<ClassIdMap> instance static

Member Function Details

Done Member Function

void cmajor::rt::ClassIdMap::Done() static

Definition at line 46 of Classes.cpp :
 47 {
 48     instance.reset();
 49 }


Declaration at line 30 of Classes.cpp


GetClassId Member Function

boost::multiprecision::uint128_t cmajor::rt::ClassIdMap::GetClassId(const boost::uuids::uuid& typeId) const

Definition at line 56 of Classes.cpp
Declaration at line 33 of Classes.cpp


Init Member Function

void cmajor::rt::ClassIdMap::Init() static

Definition at line 41 of Classes.cpp :
 42 {
 43     instance.reset(new ClassIdMap());
 44 }


Declaration at line 29 of Classes.cpp


Instance Member Function

ClassIdMap & cmajor::rt::ClassIdMap::Instance() static

Definition at line 31 of Classes.cpp :
 31 { return *instance; }


SetClassId Member Function

void cmajor::rt::ClassIdMap::SetClassId(const boost::uuids::uuid& typeId, const boost::multiprecision::uint128_t& classId)

Definition at line 51 of Classes.cpp :
 52 {
 53     classIdMap[typeId] = classId;
 54 }


Declaration at line 32 of Classes.cpp


top | up | prev | next