![]() |
XII Release 0.1.0
|
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 xiiSizeToType<STORAGE_SIZE>::Type |
Public Member Functions | |
XII_DECLARE_ID_TYPE (xiiGenericId, InstanceIndexBits, GenerationBits) | |
XII_ALWAYS_INLINE | xiiGenericId (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.