LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
IMPL::LCFlagImpl Class Reference

Implementation of helper class to create and interpret the 32-bit flag word in LCCollections. More...

#include <LCFlagImpl.h>

+ Inheritance diagram for IMPL::LCFlagImpl:

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...
 
- Public Member Functions inherited from EVENT::LCFlag
virtual ~LCFlag ()
 Destructor. More...
 

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

Destructor.

Definition at line 31 of file LCFlagImpl.h.

Member Function Documentation

bool IMPL::LCFlagImpl::bitSet ( int  index) const
virtual
int IMPL::LCFlagImpl::getFlag ( ) const
virtual

Returns the flag word.

Implements EVENT::LCFlag.

Definition at line 15 of file LCFlagImpl.cc.

References _flag.

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(), and UTIL::CellIDEncoder< T >::setCellIDFlag().

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(), getFlag(), setBit(), and unsetBit().


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