Rebel Fork Framework
Urho3D::IDFamily< T > Class Template Reference

Family of unique indices for template type. More...

#include <Urho3D/Container/IndexAllocator.h>

Public Member Functions

 IDFamily ()
 Construct.
 
 ~IDFamily ()
 Destruct.
 
unsigned GetObjectID () const
 Return unique object ID or 0 if not assigned.
 
void AcquireObjectID ()
 Acquire unique object ID. Ignored if unique ID is already acquired.
 
void ReleaseObjectID ()
 Release unique object ID. Ignored if unique ID is already released.
 

Static Public Member Functions

static const unsigned GetNextFreeObjectID ()
 Return upper bound of all used object IDs within family.
 

Private Attributes

unsigned objectId_ {}
 Unique object ID.
 

Static Private Attributes

static IndexAllocator< MutexindexAllocator
 Shared allocator for this family.
 

Detailed Description

template<class T>
class Urho3D::IDFamily< T >

Family of unique indices for template type.


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