178 return ((*
this | required) == *
this);
186 return ((*
this | required) == *
this);
Stores and handles combinations of enum values, e.g. a set of flags as bits flipped in an UInt64.
Definition: FlagSet.h:28
FlagSet operator-(const ENUM &rhs)
remove flag in rhs from this
Definition: FlagSet.h:158
FlagSet & operator+=(const FlagSet &rhs)
bitwise OR= (same as |=)
Definition: FlagSet.h:136
UInt64 getPow_(const ENUM &en) const
computes pow(2, r)
Definition: FlagSet.h:203
FlagSet operator+(const ENUM &en) const
bitwise OR (same as |)
Definition: FlagSet.h:119
UInt64 value_
Definition: FlagSet.h:209
FlagSet & operator-=(const ENUM &rhs)
remove flag in rhs from this
Definition: FlagSet.h:166
bool operator==(const FlagSet &stat) const
Equality.
Definition: FlagSet.h:54
FlagSet & operator=(const FlagSet &stat)=default
Assignment.
bool isSuperSetOf(const ENUM &required) const
Check if this FlagSet has the bit for required.
Definition: FlagSet.h:184
FlagSet operator|(const ENUM &en) const
bitwise OR
Definition: FlagSet.h:90
FlagSet operator&(const FlagSet &rhs) const
bitwise AND
Definition: FlagSet.h:68
FlagSet & operator|=(const ENUM &en)
bitwise OR=
Definition: FlagSet.h:105
FlagSet operator|(const FlagSet &rhs) const
bitwise OR
Definition: FlagSet.h:97
UInt64 value() const
internal representation (mostly for illustrative purposes)
Definition: FlagSet.h:196
FlagSet operator+(const FlagSet &en) const
bitwise OR (same as |)
Definition: FlagSet.h:125
bool isSuperSetOf(const FlagSet &required) const
Check if this FlagSet has at least the active bits of another required FlagSet.
Definition: FlagSet.h:176
bool empty() const
checks if any bit is set
Definition: FlagSet.h:190
FlagSet & operator|=(const FlagSet &rhs)
bitwise OR=
Definition: FlagSet.h:112
FlagSet & operator&=(const FlagSet &rhs)
bitwise AND=
Definition: FlagSet.h:83
FlagSet()
Constructors.
Definition: FlagSet.h:31
FlagSet operator-(const FlagSet &rhs)
remove all flags set in rhs from this
Definition: FlagSet.h:142
FlagSet & operator&=(const ENUM &en)
bitwise AND=
Definition: FlagSet.h:76
FlagSet(const ENUM &en)
C'tor from Enum.
Definition: FlagSet.h:36
FlagSet(const FlagSet &stat)=default
FlagSet & operator=(const ENUM &en)=delete
no Assignment from Enum (would allow implicit conversion)
FlagSet operator&(const ENUM &en) const
bitwise AND
Definition: FlagSet.h:60
FlagSet & operator+=(const ENUM &rhs)
bitwise OR= (same as |=)
Definition: FlagSet.h:130
~FlagSet()=default
Destructor (default)
FlagSet & operator-=(const FlagSet &rhs)
remove all flags set in rhs from this
Definition: FlagSet.h:150
uint64_t UInt64
Unsigned integer type (64bit)
Definition: Types.h:47
#define OPENMS_PRECONDITION(condition, message)
Precondition macro.
Definition: openms/include/OpenMS/CONCEPT/Macros.h:94
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19