ezEngine  Milestone 7
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 }
 
typedef ezSizeToType
< STORAGE_SIZE >::Type 
StorageType
 

Public Member Functions

 EZ_DECLARE_ID_TYPE (ezGenericId, InstanceIndexBits, GenerationBits)
 
EZ_FORCE_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: