waLBerla 7.2
Loading...
Searching...
No Matches
walberla::uid Namespace Reference

Namespaces

namespace  suidgenerator
 

Classes

struct  bit_generated_tag
 
class  BitGenerator
 Generates UIDs (unique IDs) per class T starting from 1. More...
 
struct  index_generated_tag
 
class  IndexGenerator
 Generates UIDs (unique IDs) per class T starting from 0. More...
 
struct  singleton_generated_tag
 
class  SingletonGenerator
 Generates UIDs (unique IDs) per class T starting from 1. More...
 
struct  standard_generated_tag
 
class  StandardGenerator
 Generates UIDs (unique IDs) per class T starting from 1. More...
 
class  UID
 Class for creating, storing, and managing unique identifiers. More...
 

Typedefs

using SUID = UID<suidgenerator::S>
 unified state/selection UID
 

Functions

template<typename T >
std::ostream & operator<< (std::ostream &os, const UID< T > &uid)
 
template<typename UINT >
size_t logBase2 (UINT value)
 
template<>
size_t logBase2< uint64_t > (uint64_t value)
 
template<>
size_t logBase2< uint32_t > (uint32_t value)
 
template<typename T >
Set< UID< T > > operator+ (const UID< T > &a, const UID< T > &b)
 
template<typename T >
Set< UID< T > > operator& (const UID< T > &a, const UID< T > &b)
 

Variables

static const std::array< uint8_t, 256 > logBase2LookupTable
 

Typedef Documentation

◆ SUID

unified state/selection UID

Function Documentation

◆ logBase2()

template<typename UINT >
size_t walberla::uid::logBase2 ( UINT value)

◆ logBase2< uint32_t >()

template<>
size_t walberla::uid::logBase2< uint32_t > ( uint32_t value)
inline

◆ logBase2< uint64_t >()

template<>
size_t walberla::uid::logBase2< uint64_t > ( uint64_t value)
inline

◆ operator&()

template<typename T >
Set< UID< T > > walberla::uid::operator& ( const UID< T > & a,
const UID< T > & b )
inline

◆ operator+()

template<typename T >
Set< UID< T > > walberla::uid::operator+ ( const UID< T > & a,
const UID< T > & b )
inline

◆ operator<<()

template<typename T >
std::ostream & walberla::uid::operator<< ( std::ostream & os,
const UID< T > & uid )
inline

Variable Documentation

◆ logBase2LookupTable

const std::array< uint8_t, 256 > walberla::uid::logBase2LookupTable
static
Initial value:
=
{
#define logBase2LT(n)
0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 , 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5 , 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5 , 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 , 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 , 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 , 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 , 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 , 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 , 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 , 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 , 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 , 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7 , 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7
}