LCIO  "2.7.4"
 All Classes Namespaces Functions Variables Typedefs Friends Pages
Public Member Functions | Protected Attributes | List of all members
UTIL::BitFieldValue Class Reference

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.
 
BitFieldValueoperator= (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
 

Detailed Description

Helper class for BitField64 that corresponds to one field value.

Constructor & Destructor Documentation

UTIL::BitFieldValue::BitFieldValue ( lcio::long64 bitfield,
const std::string &  name,
unsigned  offset,
int  signedWidth 
)

The default c'tor.

Parameters
bitfieldreference to the 64bit bitfield
offsetoffset of field
signedWidthwidth of field, negative if field is signed

References offset().

Member Function Documentation

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


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