DynExp
Highly flexible laboratory automation for dynamically changing experiments.
Loading...
Searching...
No Matches
Util::UniqueID Class Reference

Collection of static functions to generate a unique ID for data types. More...

#include <Util.h>

Static Public Member Functions

template<typename T >
static size_t Get () noexcept
 Generates a unique ID for each template instantiation. The first ID is 1 to allow assigning a special meaning to 0.
 

Static Private Member Functions

static size_t Make () noexcept
 Creates a new ID for each call.
 

Detailed Description

Collection of static functions to generate a unique ID for data types.

Definition at line 578 of file Util.h.

Member Function Documentation

◆ Get()

template<typename T >
static size_t Util::UniqueID::Get ( )
inlinestaticnoexcept

Generates a unique ID for each template instantiation. The first ID is 1 to allow assigning a special meaning to 0.

Template Parameters
TType to return an ID for.
Returns
Returns the ID related to T.

Definition at line 588 of file Util.h.

◆ Make()

size_t Util::UniqueID::Make ( )
staticprivatenoexcept

Creates a new ID for each call.

Returns
Returns the new unique ID.

Definition at line 149 of file Util.cpp.


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