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

IMPL::LCFlagImpl Class Reference

#include <LCFlagImpl.h>

Inheritance diagram for IMPL::LCFlagImpl:

EVENT::LCFlag List of all members.

Public Member Functions

 LCFlagImpl ()
 LCFlagImpl (int flag)
virtual ~LCFlagImpl ()
 Destructor.
virtual bool bitSet (int index) const
virtual int getFlag () const
virtual void setBit (int bit)
virtual void unsetBit (int bit)

Private Attributes

int _flag

Detailed Description

Implementation of helper class to create and interpret the 32-bit flag word in LCCollections. Bits are defined in class LCIO.

See also:
LCIO
Author:
gaede
Version:
May 6, 2003

Definition at line 15 of file LCFlagImpl.h.


Constructor & Destructor Documentation

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.

virtual IMPL::LCFlagImpl::~LCFlagImpl  )  [inline, virtual]
 

Destructor.

Definition at line 31 of file LCFlagImpl.h.


Member Function Documentation

bool IMPL::LCFlagImpl::bitSet int  index  )  const [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 setBit(), unsetBit(), SIO::SIOTrackerRawDataHandler::write(), SIO::SIOTrackerPulseHandler::write(), SIO::SIOTrackerDataHandler::write(), SIO::SIORawCalHitHandler::write(), and SIO::SIOCalHitHandler::write().

int IMPL::LCFlagImpl::getFlag  )  const [virtual]
 

Returns the flag word.

Implements EVENT::LCFlag.

Definition at line 15 of file LCFlagImpl.cc.

Referenced by UTIL::LCRelationNavigator::createLCCollection().

void IMPL::LCFlagImpl::setBit int  bit  )  [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().

void IMPL::LCFlagImpl::unsetBit int  bit  )  [virtual]
 

Sets bit to 0.

Implements EVENT::LCFlag.

Definition at line 28 of file LCFlagImpl.cc.

References _flag, and bitSet().


Member Data Documentation

int IMPL::LCFlagImpl::_flag [private]
 

Definition at line 18 of file LCFlagImpl.h.

Referenced by bitSet(), setBit(), and unsetBit().


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