LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
util::flags::details Namespace Reference

Classes

struct  SmallestUIntType
 

Typedefs

template<unsigned int NBits>
using smallestUInt_t = typename SmallestUIntType< NBits >::type
 The smallest integral type accommodating NBits bits. More...
 

Functions

template<typename Storage >
constexpr unsigned int computePages (unsigned int bits)
 Returns the number of Storage variables needed to hold that many bits. More...
 
template<typename Storage >
constexpr Storage makeBits (Index_t index)
 Returns a set of bits with only the one at the specified index set. More...
 

Typedef Documentation

template<unsigned int NBits>
using util::flags::details::smallestUInt_t = typedef typename SmallestUIntType<NBits>::type

The smallest integral type accommodating NBits bits.

Definition at line 70 of file BitMask.h.

Function Documentation

template<typename Storage >
constexpr unsigned int util::flags::details::computePages ( unsigned int  bits)

Returns the number of Storage variables needed to hold that many bits.

template<typename Storage >
constexpr Storage util::flags::details::makeBits ( Index_t  index)

Returns a set of bits with only the one at the specified index set.

Definition at line 78 of file BitMask.h.

79  {
80  return Storage(1) << index;
81  }