204 return ((*
this | required) == *
this);
212 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:54
FlagSet operator-(const ENUM &rhs)
remove flag in rhs from this
Definition: FlagSet.h:184
FlagSet & operator+=(const FlagSet &rhs)
bitwise OR= (same as |=)
Definition: FlagSet.h:162
UInt64 getPow_(const ENUM &en) const
computes pow(2, r)
Definition: FlagSet.h:229
FlagSet operator+(const ENUM &en) const
bitwise OR (same as |)
Definition: FlagSet.h:145
UInt64 value_
Definition: FlagSet.h:235
FlagSet & operator-=(const ENUM &rhs)
remove flag in rhs from this
Definition: FlagSet.h:192
bool operator==(const FlagSet &stat) const
Equality.
Definition: FlagSet.h:80
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:210
FlagSet operator|(const ENUM &en) const
bitwise OR
Definition: FlagSet.h:116
FlagSet operator&(const FlagSet &rhs) const
bitwise AND
Definition: FlagSet.h:94
FlagSet & operator|=(const ENUM &en)
bitwise OR=
Definition: FlagSet.h:131
FlagSet operator|(const FlagSet &rhs) const
bitwise OR
Definition: FlagSet.h:123
UInt64 value() const
internal representation (mostly for illustrative purposes)
Definition: FlagSet.h:222
FlagSet operator+(const FlagSet &en) const
bitwise OR (same as |)
Definition: FlagSet.h:151
bool isSuperSetOf(const FlagSet &required) const
Check if this FlagSet has at least the active bits of another required FlagSet.
Definition: FlagSet.h:202
bool empty() const
checks if any bit is set
Definition: FlagSet.h:216
FlagSet & operator|=(const FlagSet &rhs)
bitwise OR=
Definition: FlagSet.h:138
FlagSet & operator&=(const FlagSet &rhs)
bitwise AND=
Definition: FlagSet.h:109
FlagSet()
Constructors.
Definition: FlagSet.h:57
FlagSet operator-(const FlagSet &rhs)
remove all flags set in rhs from this
Definition: FlagSet.h:168
FlagSet & operator&=(const ENUM &en)
bitwise AND=
Definition: FlagSet.h:102
FlagSet(const ENUM &en)
C'tor from Enum.
Definition: FlagSet.h:62
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:86
FlagSet & operator+=(const ENUM &rhs)
bitwise OR= (same as |=)
Definition: FlagSet.h:156
~FlagSet()=default
Destructor (default)
FlagSet & operator-=(const FlagSet &rhs)
remove all flags set in rhs from this
Definition: FlagSet.h:176
OPENMS_UINT64_TYPE UInt64
Unsigned integer type (64bit)
Definition: Types.h:77
#define OPENMS_PRECONDITION(condition, message)
Precondition macro.
Definition: openms/include/OpenMS/CONCEPT/Macros.h:120
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48