LCIO
02.17
|
Implementation of helper class to create and interpret the 32-bit flag word in LCCollections. More...
#include <LCFlagImpl.h>
Public Member Functions | |
LCFlagImpl () | |
Constructor initializing flag with 0. More... | |
LCFlagImpl (int flag) | |
Constructor for evaluating an existing flag word. More... | |
virtual | ~LCFlagImpl () |
Destructor. More... | |
virtual bool | bitSet (int index) const |
Returns true if bit at given index is set. More... | |
virtual int | getFlag () const |
Returns the flag word. More... | |
virtual void | setBit (int bit) |
Sets bit to 1. More... | |
virtual void | unsetBit (int bit) |
Sets bit to 0. More... | |
![]() | |
virtual | ~LCFlag () |
Destructor. More... | |
Private Attributes | |
int | _flag |
Implementation of helper class to create and interpret the 32-bit flag word in LCCollections.
Bits are defined in class LCIO.
Definition at line 15 of file LCFlagImpl.h.
IMPL::LCFlagImpl::LCFlagImpl | ( | ) |
Constructor initializing flag with 0.
Definition at line 8 of file LCFlagImpl.cc.
IMPL::LCFlagImpl::LCFlagImpl | ( | int | flag | ) |
Constructor for evaluating an existing flag word.
Definition at line 10 of file LCFlagImpl.cc.
|
inlinevirtual |
Destructor.
Definition at line 31 of file LCFlagImpl.h.
|
virtual |
Returns true if bit at given index is set.
Implements EVENT::LCFlag.
Definition at line 13 of file LCFlagImpl.cc.
References _flag.
Referenced by SIO::SIOLCGenericObjectHandler::initReading(), SIO::SIOTrackerRawDataHandler::read(), SIO::SIOCalHitHandler::read(), SIO::SIOTrackerHitZCylinderHandler::read(), SIO::SIOTrackerPulseHandler::read(), SIO::SIOTPCHitHandler::read(), SIO::SIOTrackerHitPlaneHandler::read(), SIO::SIORawCalHitHandler::read(), SIO::SIOTrackerHitHandler::read(), SIO::SIOSimCalHitHandler::read(), SIO::SIOSimTrackHitHandler::read(), SIO::SIOTrackerDataHandler::read(), setBit(), unsetBit(), SIO::SIOCalHitHandler::write(), SIO::SIOTrackerHitHandler::write(), SIO::SIOTrackerHitPlaneHandler::write(), SIO::SIOTrackerHitZCylinderHandler::write(), and SIO::SIOSimTrackHitHandler::write().
|
virtual |
Returns the flag word.
Implements EVENT::LCFlag.
Definition at line 15 of file LCFlagImpl.cc.
References _flag.
Referenced by UTIL::LCRelationNavigator::createLCCollection().
|
virtual |
Sets bit to 1.
Implements EVENT::LCFlag.
Definition at line 18 of file LCFlagImpl.cc.
References _flag, and bitSet().
Referenced by UTIL::LCRelationNavigator::createLCCollection(), and UTIL::CellIDEncoder< T >::setCellIDFlag().
|
virtual |
|
private |
Definition at line 18 of file LCFlagImpl.h.
Referenced by bitSet(), getFlag(), setBit(), and unsetBit().