#include <BitsInspector.h>
Collaboration diagram for DybDaq::BitsInspector:
Public Member Functions | |
BitsInspector (unsigned int value, const DybDaq::BitsDefinition &definition) | |
Creates an instance of this class. | |
virtual | ~BitsInspector () |
Destroy this instance of the class. | |
unsigned int | lowBit () const |
The least significant bit containing this value. | |
unsigned int | highBit () const |
The most significant bit containing this value. | |
unsigned int | value () const |
The value contained in these bits. | |
const std::string & | description () const |
The description og the value contained in these bits. | |
Private Member Functions | |
BitsInspector () | |
Suppress default. | |
BitsInspector (BitsInspector &rhs) | |
Suppress default. | |
BitsInspector & | operator= (BitsInspector &rhs) |
Suppress default. | |
Private Attributes | |
const unsigned int | m_value |
The value of these bits. | |
const DybDaq::BitsDefinition & | m_definition |
The definition of these bits. |
Definition at line 20 of file BitsInspector.h.
BitsInspector::BitsInspector | ( | unsigned int | value, | |
const DybDaq::BitsDefinition & | definition | |||
) |
Creates an instance of this class.
Definition at line 16 of file BitsInspector.cc.
00017 : 00018 m_value(value), 00019 m_definition(definition) { 00020 }
BitsInspector::~BitsInspector | ( | ) | [virtual] |
DybDaq::BitsInspector::BitsInspector | ( | ) | [private] |
Suppress default.
DybDaq::BitsInspector::BitsInspector | ( | BitsInspector & | rhs | ) | [private] |
Suppress default.
unsigned int BitsInspector::lowBit | ( | ) | const |
The least significant bit containing this value.
Definition at line 25 of file BitsInspector.cc.
00025 { 00026 return m_definition.lowBit(); 00027 }
unsigned int BitsInspector::highBit | ( | ) | const |
The most significant bit containing this value.
Definition at line 29 of file BitsInspector.cc.
00029 { 00030 return m_definition.highBit(); 00031 }
unsigned int BitsInspector::value | ( | ) | const |
The value contained in these bits.
Definition at line 33 of file BitsInspector.cc.
00033 { 00034 return m_value; 00035 }
const string & BitsInspector::description | ( | ) | const |
The description og the value contained in these bits.
Definition at line 37 of file BitsInspector.cc.
00037 { 00038 return m_definition.description(); 00039 }
BitsInspector& DybDaq::BitsInspector::operator= | ( | BitsInspector & | rhs | ) | [private] |
Suppress default.
const unsigned int DybDaq::BitsInspector::m_value [private] |
const DybDaq::BitsDefinition& DybDaq::BitsInspector::m_definition [private] |