UTIL::BitFieldValue Class Reference

Helper class for BitField64 that corresponds to one field value. More...

#include <UTIL/BitField64.h>

List of all members.

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.
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().
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

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:
bitfield reference to the 64bit bitfield
offset offset of field
signedWidth width of field, negative if field is signed

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:
 All Classes Namespaces Functions Variables Typedefs Friends

Generated on 6 Mar 2020 for LCIO by  doxygen 1.6.1