Belle II Software  release-08-01-10
simpleBitfield< T > Class Template Reference

helper class for setting up a bitfield that can be used to store several flags in one variable TODO: move this from this header (possibly to some helperStuff header) and make some tests! More...

#include <SpacePoint2TrueHitConnectorModule.h>

Collaboration diagram for simpleBitfield< T >:

Public Member Functions

 simpleBitfield ()
 default constructor
 
 simpleBitfield (const simpleBitfield< T > &__otherBitfield)=delete
 not needed
 
simpleBitfield< T > & operator= (simpleBitfield< T > &)=delete
 not needed
 
const T hasStatus (T __statusBits) const
 check if a certain status has been set to the bitfield
 
const T getStatus () const
 get the status of the bitfield
 
void setStatus (T __statusBits)
 set the status of the bitfield (CAUTION: overwrites any previously defined status!)
 
void addStatus (T __statusBits)
 add a status to the bitfield (if it has not already been added)
 
void removeStatus (T __statusBits)
 remove a status from the bitfield
 
void clear ()
 reset bitfield
 

Private Attributes

__bits
 member holding the bits that are maniuplated
 

Detailed Description

template<typename T>
class Belle2::simpleBitfield< T >

helper class for setting up a bitfield that can be used to store several flags in one variable TODO: move this from this header (possibly to some helperStuff header) and make some tests!

Definition at line 429 of file SpacePoint2TrueHitConnectorModule.h.


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