Generates UIDs (unique IDs) per class T starting from 0.
Increment is 1.
#include <UIDGenerators.h>
Public Types | |
using | uint_type = UINT |
using | generator_type = index_generated_tag |
Public Member Functions | |
WALBERLA_STATIC_ASSERT (std::numeric_limits< UINT >::is_specialized &&std::numeric_limits< UINT >::is_integer &&!std::numeric_limits< UINT >::is_signed) | |
Static Public Member Functions | |
static uint_type | generateUID () |
static uint_type | firstUID () |
static uint_type | nextUID (const uint_type uid) |
static uint_type | toIndex (const uint_type uid) |
static uint_type | toBitMask (const uint_type uid) |
static const char * | getType () |
using walberla::uid::IndexGenerator< T, UINT >::generator_type = index_generated_tag |
using walberla::uid::IndexGenerator< T, UINT >::uint_type = UINT |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
walberla::uid::IndexGenerator< T, UINT >::WALBERLA_STATIC_ASSERT | ( | std::numeric_limits< UINT >::is_specialized &&std::numeric_limits< UINT >::is_integer &&!std::numeric_limits< UINT >::is_signed | ) |