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. | |
| 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(). | |
| 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 |
| std::string | _name |
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 |
| const std::string& UTIL::BitFieldValue::name | ( | ) | const [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.6.1