LCIO
02.17
|
Helper class for BitField64 that corresponds to one field value. More...
#include <BitField64.h>
Public Member Functions | |
virtual | ~BitFieldValue () |
BitFieldValue (lcio::long64 &bitfield, const std::string &name, unsigned offset, int signedWidth) | |
The default c'tor. More... | |
lcio::long64 | value () const |
Returns the current field value. More... | |
BitFieldValue & | operator= (lcio::long64 in) |
Assignment operator for user convenience. More... | |
operator lcio::long64 () const | |
Conversion operator for lcio::long64 - allows to write: lcio::long64 index = myBitFieldValue ;. More... | |
const std::string & | name () const |
fg: removed because it causes ambiguities with operator lcio::long64(). More... | |
unsigned | offset () const |
The field's offset. More... | |
unsigned | width () const |
The field's width. More... | |
bool | isSigned () const |
True if field is interpreted as signed. More... | |
lcio::ulong64 | mask () const |
The field's mask. More... | |
Protected Attributes | |
lcio::long64 & | _b |
lcio::ulong64 | _mask {0} |
std::string | _name |
unsigned | _offset {0} |
unsigned | _width {0} |
int | _minVal {0} |
int | _maxVal {0} |
bool | _isSigned {false} |
Helper class for BitField64 that corresponds to one field value.
Definition at line 55 of file BitField64.h.
|
inlinevirtual |
Definition at line 58 of file BitField64.h.
UTIL::BitFieldValue::BitFieldValue | ( | lcio::long64 & | bitfield, |
const std::string & | name, | ||
unsigned | offset, | ||
int | signedWidth | ||
) |
The default c'tor.
bitfield | reference to the 64bit bitfield |
offset | offset of field |
signedWidth | width of field, negative if field is signed |
Definition at line 11 of file BitField64.cc.
References _isSigned, _mask, _maxVal, _minVal, _name, _offset, _width, and std::stringstream::str().
|
inline |
True if field is interpreted as signed.
Definition at line 98 of file BitField64.h.
References _isSigned.
|
inline |
The field's mask.
Definition at line 101 of file BitField64.h.
References _mask.
Referenced by UTIL::BitField64::addField().
|
inline |
fg: removed because it causes ambiguities with operator lcio::long64().
Conversion operator for int - allows to write:
int index = myBitFieldValue ;The field's name
Definition at line 89 of file BitField64.h.
References _name.
|
inline |
|
inline |
Conversion operator for lcio::long64 - allows to write:
lcio::long64 index = myBitFieldValue ;.
Definition at line 80 of file BitField64.h.
References value().
BitFieldValue & UTIL::BitFieldValue::operator= | ( | lcio::long64 | in | ) |
Assignment operator for user convenience.
Definition at line 75 of file BitField64.cc.
References _b, _mask, _maxVal, _name, _offset, _width, and std::stringstream::str().
long64 UTIL::BitFieldValue::value | ( | ) | const |
Returns the current field value.
Definition at line 56 of file BitField64.cc.
References _b, _isSigned, _mask, _offset, and _width.
Referenced by operator lcio::long64().
|
inline |
|
protected |
Definition at line 106 of file BitField64.h.
Referenced by operator=(), and value().
|
protected |
Definition at line 113 of file BitField64.h.
Referenced by BitFieldValue(), isSigned(), and value().
|
protected |
Definition at line 107 of file BitField64.h.
Referenced by BitFieldValue(), mask(), operator=(), and value().
|
protected |
Definition at line 112 of file BitField64.h.
Referenced by BitFieldValue(), and operator=().
|
protected |
Definition at line 111 of file BitField64.h.
Referenced by BitFieldValue().
|
protected |
Definition at line 108 of file BitField64.h.
Referenced by BitFieldValue(), name(), and operator=().
|
protected |
Definition at line 109 of file BitField64.h.
Referenced by BitFieldValue(), offset(), operator=(), and value().
|
protected |
Definition at line 110 of file BitField64.h.
Referenced by BitFieldValue(), operator=(), value(), and width().