walberla::uid::IndexGenerator< T, UINT > Class Template Reference

Detailed Description

template<typename T, typename UINT>
class walberla::uid::IndexGenerator< T, UINT >

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 ()
 

Member Typedef Documentation

◆ generator_type

template<typename T , typename UINT >
using walberla::uid::IndexGenerator< T, UINT >::generator_type = index_generated_tag

◆ uint_type

template<typename T , typename UINT >
using walberla::uid::IndexGenerator< T, UINT >::uint_type = UINT

Member Function Documentation

◆ firstUID()

template<typename T , typename UINT >
static uint_type walberla::uid::IndexGenerator< T, UINT >::firstUID ( )
inlinestatic

◆ generateUID()

template<typename T , typename UINT >
static uint_type walberla::uid::IndexGenerator< T, UINT >::generateUID ( )
inlinestatic

◆ getType()

template<typename T , typename UINT >
static const char* walberla::uid::IndexGenerator< T, UINT >::getType ( )
inlinestatic

◆ nextUID()

template<typename T , typename UINT >
static uint_type walberla::uid::IndexGenerator< T, UINT >::nextUID ( const uint_type  uid)
inlinestatic

◆ toBitMask()

template<typename T , typename UINT >
static uint_type walberla::uid::IndexGenerator< T, UINT >::toBitMask ( const uint_type  uid)
inlinestatic

◆ toIndex()

template<typename T , typename UINT >
static uint_type walberla::uid::IndexGenerator< T, UINT >::toIndex ( const uint_type  uid)
inlinestatic

◆ WALBERLA_STATIC_ASSERT()

template<typename T , typename UINT >
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  )

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