![]() |
Plasma Engine
2.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 plSizeToType<STORAGE_SIZE>::Type |
Public Member Functions | |
PL_DECLARE_ID_TYPE (plGenericId, InstanceIndexBits, GenerationBits) | |
PL_ALWAYS_INLINE | plGenericId (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.