waLBerla 7.2
Loading...
Searching...
No Matches
UIDGenerators.h File Reference

Detailed Description

Author
Florian Schornbaum flori.nosp@m.an.s.nosp@m.chorn.nosp@m.baum.nosp@m.@fau..nosp@m.de
Christian Feichtinger
#include "core/debug/Debug.h"
#include <cstdint>
#include <limits>

Classes

struct  walberla::uid::index_generated_tag
 
class  walberla::uid::IndexGenerator< T, UINT >
 Generates UIDs (unique IDs) per class T starting from 0. More...
 
struct  walberla::uid::standard_generated_tag
 
class  walberla::uid::StandardGenerator< T, UINT >
 Generates UIDs (unique IDs) per class T starting from 1. More...
 
struct  walberla::uid::bit_generated_tag
 
class  walberla::uid::BitGenerator< T, UINT >
 Generates UIDs (unique IDs) per class T starting from 1. More...
 
struct  walberla::uid::singleton_generated_tag
 
class  walberla::uid::SingletonGenerator< T, UINT >
 Generates UIDs (unique IDs) per class T starting from 1. More...
 

Namespaces

namespace  walberla
 Storage for detected contacts which can be used to perform actions for all contacts, e.g.
 
namespace  walberla::uid
 

Macros

#define logBase2LT(n)   n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n
 

Functions

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

Variables

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

Macro Definition Documentation

◆ logBase2LT

#define logBase2LT ( n)    n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n