Project
Loading...
Searching...
No Matches
o2::header::internal Namespace Reference

Classes

struct  NumberOfActiveBits
 get the number of active bits (set to 1) in a bitfield More...
 
struct  NumberOfActiveBits< 0 >
 
struct  TraitsIntType
 select uint type depending on size, default is uint64_t More...
 
struct  TraitsIntType< 1 >
 
struct  TraitsIntType< 2 >
 
struct  TraitsIntType< 4 >
 

Functions

template<typename T >
constexpr T String2__ ()
 
template<typename T , typename... Targs>
constexpr T String2__ (char c, Targs... Fargs)
 
template<typename T , int N>
constexpr int ArraySize ()
 evaluate the array size necessary to hold a N-byte number with type T
 
template<int N>
constexpr std::size_t strLength (const char(&str)[N], std::size_t pos=0)
 

Function Documentation

◆ ArraySize()

template<typename T , int N>
constexpr int o2::header::internal::ArraySize ( )
constexpr

evaluate the array size necessary to hold a N-byte number with type T

Definition at line 126 of file DataHeader.h.

◆ String2__() [1/2]

template<typename T >
constexpr T o2::header::internal::String2__ ( )
constexpr

Definition at line 103 of file DataHeader.h.

◆ String2__() [2/2]

template<typename T , typename... Targs>
constexpr T o2::header::internal::String2__ ( char  c,
Targs...  Fargs 
)
constexpr

Definition at line 109 of file DataHeader.h.

◆ strLength()

template<int N>
constexpr std::size_t o2::header::internal::strLength ( const char(&)  str[N],
std::size_t  pos = 0 
)
constexpr

compile time evaluation of a string length, which is either N - 1 or shorter if one character in the array has been set to 0.

Definition at line 152 of file DataHeader.h.