Gaia-ECS v1.0.0
A simple and powerful entity component system
Loading...
Searching...
No Matches
gaia::cnt::ilist_handle_traits< TItemHandle, typename > Struct Template Reference

Rebuild policy for implicit-list handles after generation changes. More...

#include <ilist.h>

Static Public Member Functions

static TItemHandle make (uint32_t id, uint32_t gen, const TItemHandle &prev)
 Rebuilds a handle after its generation changes.
 

Detailed Description

template<typename TItemHandle, typename = void>
struct gaia::cnt::ilist_handle_traits< TItemHandle, typename >

Rebuild policy for implicit-list handles after generation changes.

Template Parameters
TItemHandleExternal handle type. The second template argument is reserved for specialization detection.

Member Function Documentation

◆ make()

Rebuilds a handle after its generation changes.

Parameters
idSlot index stored in the handle.
genNew slot generation.
prevPrevious handle value. Unused for simple id/generation handles.
Returns
Rebuilt handle preserving the handle type's supported metadata.

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