ezEngine  Release 25.03
ezGenericId< InstanceIndexBits, GenerationBits > Struct Template Reference

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
 
   } 
 
}; 
 

Detailed Description

template<ezUInt32 InstanceIndexBits, ezUInt32 GenerationBits>
struct ezGenericId< InstanceIndexBits, GenerationBits >

A generic id class that holds an id combined of an instance index and a generation counter.

Todo:
Document this better.

The documentation for this struct was generated from the following file: