![]() |
ezEngine
Release 25.03
|
A generic id class that holds an id combined of an instance index and a generation counter. More...
#include <Id.h>
Public Types | |
enum | { STORAGE_SIZE = ((InstanceIndexBits + GenerationBits - 1) / 8) + 1 } |
using | StorageType = typename ezSizeToType< STORAGE_SIZE >::Type |
Public Member Functions | |
EZ_DECLARE_ID_TYPE (ezGenericId, InstanceIndexBits, GenerationBits) | |
EZ_ALWAYS_INLINE | ezGenericId (StorageType instanceIndex, StorageType generation) |
Public Attributes | |
union { | |
StorageType m_Data | |
struct { | |
StorageType m_InstanceIndex: InstanceIndexBits | |
StorageType m_Generation: GenerationBits | |
} | |
}; | |
A generic id class that holds an id combined of an instance index and a generation counter.