Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

UTIL::BitFieldValue Class Reference

#include <BitField64.h>

List of all members.

Public Member Functions

virtual ~BitFieldValue ()
 BitFieldValue (lcio::long64 &bitfield, const std::string &name, unsigned offset, int signedWidth)
lcio::long64 value () const
BitFieldValueoperator= (lcio::long64 in)
 operator lcio::long64 () const
const std::string & name () const
unsigned offset () const
unsigned width () const
bool isSigned () const
lcio::ulong64 mask () const

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.

Definition at line 55 of file BitField64.h.


Constructor & Destructor Documentation

virtual UTIL::BitFieldValue::~BitFieldValue  )  [inline, virtual]
 

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.

Parameters:
bitfield reference to the 64bit bitfield
offset offset of field
signedWidth width of field, negative if field is signed

Definition at line 8 of file BitField64.cc.

References _mask, _maxVal, _minVal, and _width.


Member Function Documentation

bool UTIL::BitFieldValue::isSigned  )  const [inline]
 

True if field is interpreted as signed

Definition at line 98 of file BitField64.h.

lcio::ulong64 UTIL::BitFieldValue::mask  )  const [inline]
 

The field's mask

Definition at line 101 of file BitField64.h.

Referenced by UTIL::BitField64::addField().

const std::string& UTIL::BitFieldValue::name  )  const [inline]
 

The field's name

Definition at line 89 of file BitField64.h.

unsigned UTIL::BitFieldValue::offset  )  const [inline]
 

The field's offset

Definition at line 92 of file BitField64.h.

UTIL::BitFieldValue::operator lcio::long64  )  const [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

long64 UTIL::BitFieldValue::value  )  const
 

Returns the current field value

Definition at line 53 of file BitField64.cc.

References _b, _width, and EVENT::long64.

Referenced by operator lcio::long64().

unsigned UTIL::BitFieldValue::width  )  const [inline]
 

The field's width

Definition at line 95 of file BitField64.h.


Member Data Documentation

lcio::long64& UTIL::BitFieldValue::_b [protected]
 

Definition at line 106 of file BitField64.h.

Referenced by value().

bool UTIL::BitFieldValue::_isSigned [protected]
 

Definition at line 113 of file BitField64.h.

lcio::ulong64 UTIL::BitFieldValue::_mask [protected]
 

Definition at line 107 of file BitField64.h.

Referenced by BitFieldValue().

int UTIL::BitFieldValue::_maxVal [protected]
 

Definition at line 112 of file BitField64.h.

Referenced by BitFieldValue().

int UTIL::BitFieldValue::_minVal [protected]
 

Definition at line 111 of file BitField64.h.

Referenced by BitFieldValue().

std::string UTIL::BitFieldValue::_name [protected]
 

Definition at line 108 of file BitField64.h.

unsigned UTIL::BitFieldValue::_offset [protected]
 

Definition at line 109 of file BitField64.h.

unsigned UTIL::BitFieldValue::_width [protected]
 

Definition at line 110 of file BitField64.h.

Referenced by BitFieldValue(), and value().


The documentation for this class was generated from the following files:
Generated on Sun Jun 3 06:32:40 2007 for A TPC Tracking Environment by  doxygen 1.3.9.1