![]() |
Belle II Software release-09-00-04
|
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>

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 | |
| T | __bits |
| member holding the bits that are maniuplated | |
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.
|
inline |
default constructor
Definition at line 432 of file SpacePoint2TrueHitConnectorModule.h.
|
inline |
add a status to the bitfield (if it has not already been added)
Definition at line 444 of file SpacePoint2TrueHitConnectorModule.h.
|
inline |
reset bitfield
Definition at line 448 of file SpacePoint2TrueHitConnectorModule.h.
|
inline |
|
inline |
check if a certain status has been set to the bitfield
Definition at line 438 of file SpacePoint2TrueHitConnectorModule.h.
|
inline |
remove a status from the bitfield
Definition at line 446 of file SpacePoint2TrueHitConnectorModule.h.
|
inline |
set the status of the bitfield (CAUTION: overwrites any previously defined status!)
Definition at line 442 of file SpacePoint2TrueHitConnectorModule.h.
|
private |
member holding the bits that are maniuplated
Definition at line 451 of file SpacePoint2TrueHitConnectorModule.h.