OpenMS
2.5.0
|
Storing a status of available/needed inputs (i.e. a set of Requires) as UInt64. More...
#include <OpenMS/QC/QCBase.h>
Public Member Functions | |
Status () | |
Constructors. More... | |
Status (const Requires &req) | |
Status (const Status &stat) | |
Status & | operator= (const Requires &req) |
Assignment. More... | |
~Status ()=default | |
Destructor (default) More... | |
bool | operator== (const Status &stat) const |
Status & | operator= (const Status &stat)=default |
Status | operator& (const Requires &req) const |
Status | operator& (const Status &stat) const |
Status & | operator&= (const Requires &req) |
Status & | operator&= (const Status &stat) |
Status | operator| (const Requires &req) const |
Status | operator| (const Status &stat) const |
Status & | operator|= (const Requires &req) |
Status & | operator|= (const Status &stat) |
bool | isSuperSetOf (const Status &stat) const |
Check if input status fulfills requirement status. More... | |
Private Member Functions | |
UInt64 | getPow_ (const Requires &r) const |
computes pow(2, r) More... | |
Private Attributes | |
UInt64 | value_ |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Status &stat) |
stream output for Status More... | |
Storing a status of available/needed inputs (i.e. a set of Requires) as UInt64.
Conversion from a Requires enum is computed as `pow(2, r)`. Multiple Requires attributes can be computed by bitwise 'or'.
Only allows assignment and bit operations with itself and an object of type Requires, i.e. not with any numeric types.
|
inline |
Constructors.
References QCBase::Status::value_.
|
default |
Destructor (default)
|
inline |
Check if input status fulfills requirement status.
References QCBase::Status::value_.
References QCBase::Status::value_.
References QCBase::Status::value_.
References QCBase::Status::value_.
|
inline |
References QCBase::Status::value_.
References QCBase::Status::value_.
References QCBase::Status::value_.
References QCBase::Status::value_.