#include <attributeregistry.h>
|
static AttributeRegistry * | Instance () |
| The registry's constructor is called by the Instance() method, and nobody else.
|
|
static void | Destroy () |
| This static method is used to destroy the registry object and should be called right before the main function exits.
|
|
◆ AttributeRegistry()
MemDb::AttributeRegistry::AttributeRegistry |
( |
| ) |
|
|
private |
◆ ~AttributeRegistry()
MemDb::AttributeRegistry::~AttributeRegistry |
( |
| ) |
|
|
private |
◆ DefaultValue()
void const *const MemDb::AttributeRegistry::DefaultValue |
( |
AttributeId | descriptor | ) |
|
|
inlinestatic |
get attribute default value pointer
◆ Destroy()
void MemDb::AttributeRegistry::Destroy |
( |
| ) |
|
|
staticprivate |
This static method is used to destroy the registry object and should be called right before the main function exits.
It will make sure that no accidential memory leaks are reported by the debug heap.
◆ Flags()
uint32_t MemDb::AttributeRegistry::Flags |
( |
AttributeId | descriptor | ) |
|
|
inlinestatic |
get flags by attribute id
◆ GetAllAttributes()
get an array of all attributes
◆ GetAttribute()
get attribute description by id
◆ GetAttributeId()
get attribute id from name
◆ Instance()
The registry's constructor is called by the Instance() method, and nobody else.
◆ IsRegistered()
template<typename TYPE >
bool MemDb::AttributeRegistry::IsRegistered |
( |
| ) |
|
|
inlinestatic |
Check if a type is registered.
◆ Register() [1/3]
◆ Register() [2/3]
register a POD, mem-copyable type
◆ Register() [3/3]
register a type (templated)
TYPE must be trivially copyable and destructible, and also standard layout.
Essentially a POD type, but we do allow non-trivially-constructible types since components are created by copying the default value, not with constructors. The reason for this is because it allows us to do value initialization in declarations.
◆ TypeSize()
get type size by attribute id
◆ componentDescriptions
◆ registry
◆ Singleton
The documentation for this class was generated from the following files: