HYDRA_development_version
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HBitMan Class Reference

#include <hbitman.h>

Inheritance diagram for HBitMan:
Collaboration diagram for HBitMan:

Classes

struct  word
 

Public Member Functions

 HBitMan ()
 
 ~HBitMan ()
 
Int_t getWord (UInt_t &data, Int_t num, Int_t width, Bool_t sign=kFALSE)
 
void createWord (const TString name, Int_t width, Bool_t sign=kFALSE)
 
void init ()
 
void setWord (UInt_t &data, const TString name, Int_t val)
 
void unsetWord (UInt_t &data, const TString name)
 
Int_t getWord (UInt_t &data, const TString name)
 

Static Public Member Functions

static void printBits (UInt_t data)
 
static void setBit (UInt_t &data, Int_t bit)
 
static void unsetBit (UInt_t &data, Int_t bit)
 
static Bool_t getBit (UInt_t &data, Int_t bit)
 
static void setWord (UInt_t &data, Int_t num, Int_t width, Int_t val, Bool_t sign=kFALSE)
 
static void unsetWord (UInt_t &data, Int_t num, Int_t width)
 

Protected Attributes

std::vector< wordlist
 
std::map< TString, wordwordmap
 

Detailed Description

Definition at line 10 of file hbitman.h.

Constructor & Destructor Documentation

HBitMan::HBitMan ( )
HBitMan::~HBitMan ( )

Definition at line 73 of file hbitman.cc.

Member Function Documentation

void HBitMan::createWord ( const TString  name,
Int_t  width,
Bool_t  sign = kFALSE 
)

Definition at line 122 of file hbitman.cc.

References HBitMan::word::name, HBitMan::word::sign, and HBitMan::word::width.

Bool_t HBitMan::getBit ( UInt_t &  data,
Int_t  bit 
)
static

Definition at line 87 of file hbitman.cc.

Int_t HBitMan::getWord ( UInt_t &  data,
Int_t  num,
Int_t  width,
Bool_t  sign = kFALSE 
)

Definition at line 103 of file hbitman.cc.

Int_t HBitMan::getWord ( UInt_t &  data,
const TString  name 
)

Definition at line 154 of file hbitman.cc.

References HBitMan::word::offset, HBitMan::word::sign, and HBitMan::word::width.

void HBitMan::init ( void  )

Definition at line 131 of file hbitman.cc.

References HBitMan::word::offset, and HBitMan::word::width.

void HBitMan::printBits ( UInt_t  data)
static

Definition at line 79 of file hbitman.cc.

void HBitMan::setBit ( UInt_t &  data,
Int_t  bit 
)
static

Definition at line 85 of file hbitman.cc.

void HBitMan::setWord ( UInt_t &  data,
Int_t  num,
Int_t  width,
Int_t  val,
Bool_t  sign = kFALSE 
)
static

Definition at line 89 of file hbitman.cc.

void HBitMan::setWord ( UInt_t &  data,
const TString  name,
Int_t  val 
)

Definition at line 144 of file hbitman.cc.

References HBitMan::word::offset, HBitMan::word::sign, and HBitMan::word::width.

void HBitMan::unsetBit ( UInt_t &  data,
Int_t  bit 
)
static

Definition at line 86 of file hbitman.cc.

void HBitMan::unsetWord ( UInt_t &  data,
Int_t  num,
Int_t  width 
)
static

Definition at line 99 of file hbitman.cc.

void HBitMan::unsetWord ( UInt_t &  data,
const TString  name 
)

Definition at line 149 of file hbitman.cc.

References HBitMan::word::offset, and HBitMan::word::width.

Member Data Documentation

std::vector< word > HBitMan::list
protected

Definition at line 21 of file hbitman.h.

std::map< TString, word> HBitMan::wordmap
protected

Definition at line 22 of file hbitman.h.


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