LCIO  "2.7.4"
 All Classes Namespaces Functions Variables Typedefs Friends Pages
LCFlagImpl.h
1 #ifndef EVENT_LCFLAGIMPL_H
2 #define EVENT_LCFLAGIMPL_H 1
3 
4 #include "EVENT/LCFlag.h"
5 
6 namespace IMPL {
7 
15 class LCFlagImpl : public EVENT::LCFlag {
16 
17 private:
18  int _flag ;
19 
20 public:
21 
24  LCFlagImpl() ;
25 
28  LCFlagImpl(int flag) ;
29 
31  virtual ~LCFlagImpl() { /* nop */; }
32 
35  virtual bool bitSet(int index) const ;
36 
39  virtual int getFlag() const ;
40 
43  virtual void setBit(int bit) ;
44 
47  virtual void unsetBit(int bit) ;
48 
49 }; // class
50 } // namespace EVENT
51 #endif /* ifndef EVENT_LCFLAGIMPL_H */
LCFlagImpl()
Constructor initializing flag with 0.
Definition: LCFlagImpl.cc:8
virtual bool bitSet(int index) const
Returns true if bit at given index is set.
Definition: LCFlagImpl.cc:13
virtual ~LCFlagImpl()
Destructor.
Definition: LCFlagImpl.h:31
virtual void unsetBit(int bit)
Sets bit to 0.
Definition: LCFlagImpl.cc:28
virtual int getFlag() const
Returns the flag word.
Definition: LCFlagImpl.cc:15
Implementation of helper class to create and interpret the 32-bit flag word in LCCollections.
Definition: LCFlagImpl.h:15
virtual void setBit(int bit)
Sets bit to 1.
Definition: LCFlagImpl.cc:18
Helper class to create and interpret the 32-bit flag word in LCCollections.
Definition: LCFlag.h:19