Helper class for BitField64 that corresponds to one field value. More...
#include <UTIL/BitField64.h>
Public Member Functions | |
| 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. | |
| BitFieldValue & | operator= (lcio::long64 in) |
| Assignment operator for user convenience. | |
| operator lcio::long64 () const | |
| Conversion operator for lcio::long64 - allows to write: lcio::long64 index = myBitFieldValue ;. | |
| const std::string & | name () const |
| fg: removed because it causes ambiguities with operator lcio::long64(). More... | |
| unsigned | offset () const |
| The field's offset. | |
| unsigned | width () const |
| The field's width. | |
| bool | isSigned () const |
| True if field is interpreted as signed. | |
| lcio::ulong64 | mask () const |
| The field's mask. | |
Protected Attributes | |
| lcio::long64 & | _b |
| lcio::ulong64 | _mask |
| std::string | _name |
| unsigned | _offset |
| unsigned | _width |
| int | _minVal |
| int | _maxVal |
| bool | _isSigned |
Helper class for BitField64 that corresponds to one field value.
| 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 |
References offset().
|
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
1.8.6