ATLAS Offline Software
Static Public Member Functions | Private Member Functions | Static Private Member Functions | List of all members
LWHistBitUtils Class Reference

#include <LWHistBitUtils.h>

Collaboration diagram for LWHistBitUtils:

Static Public Member Functions

template<class T >
static T countSetBits (T data)
 
template<class T >
static T countSetBitsBefore (T data, T ibit)
 
template<class T >
static bool bitIsSet (T data, T ibit)
 
template<class T >
static void setBit (T &data, T ibit)
 
template<uint8_t sizeofT>
static uint8_t totalSummedOffsetInStages (uint32_t stagepattern)
 
static uint32_t posMSB (uint32_t i)
 
static uint32_t posLSB (uint32_t i)
 
static uint8_t posMSB (uint8_t i)
 
static uint8_t posLSB (uint8_t i)
 
static int minZero (int x)
 

Private Member Functions

 LWHistBitUtils ()
 
 ~LWHistBitUtils ()
 

Static Private Member Functions

template<uint8_t sizeofT>
static uint8_t stageOffset8Bits (uint32_t stagepattern)
 

Detailed Description

Definition at line 24 of file LWHistBitUtils.h.

Constructor & Destructor Documentation

◆ LWHistBitUtils()

LWHistBitUtils::LWHistBitUtils ( )
inlineprivate

Definition at line 54 of file LWHistBitUtils.h.

54 {}

◆ ~LWHistBitUtils()

LWHistBitUtils::~LWHistBitUtils ( )
inlineprivate

Definition at line 55 of file LWHistBitUtils.h.

55 {}

Member Function Documentation

◆ bitIsSet()

template<class T >
static bool LWHistBitUtils::bitIsSet ( data,
ibit 
)
inlinestatic

Definition at line 29 of file LWHistBitUtils.h.

29 { return data & (0x1<<ibit); }

◆ countSetBits()

template<class T >
static T LWHistBitUtils::countSetBits ( data)
static

◆ countSetBitsBefore()

template<class T >
static T LWHistBitUtils::countSetBitsBefore ( data,
ibit 
)
static

◆ minZero()

static int LWHistBitUtils::minZero ( int  x)
inlinestatic

Definition at line 49 of file LWHistBitUtils.h.

49 { return std::max<int>(0, x); }

◆ posLSB() [1/2]

static uint32_t LWHistBitUtils::posLSB ( uint32_t  i)
static

◆ posLSB() [2/2]

static uint8_t LWHistBitUtils::posLSB ( uint8_t  i)
static

◆ posMSB() [1/2]

static uint32_t LWHistBitUtils::posMSB ( uint32_t  i)
static

◆ posMSB() [2/2]

static uint8_t LWHistBitUtils::posMSB ( uint8_t  i)
static

◆ setBit()

template<class T >
static void LWHistBitUtils::setBit ( T &  data,
ibit 
)
inlinestatic

Definition at line 30 of file LWHistBitUtils.h.

30 { data |= (0x1<<ibit); }

◆ stageOffset8Bits()

template<uint8_t sizeofT>
static uint8_t LWHistBitUtils::stageOffset8Bits ( uint32_t  stagepattern)
staticprivate

◆ totalSummedOffsetInStages()

template<uint8_t sizeofT>
static uint8_t LWHistBitUtils::totalSummedOffsetInStages ( uint32_t  stagepattern)
static

The documentation for this class was generated from the following file:
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
x
#define x