Plasma Engine  2.0
Loading...
Searching...
No Matches
plGenericId< 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 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 
 
   }  
 
};  
 

Detailed Description

template<plUInt32 InstanceIndexBits, plUInt32 GenerationBits>
struct plGenericId< 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: