![]() |
OpenMS
|
Representation of a peak/feature filter combining FilterType, FilterOperation and a value (either double or String) More...
#include <OpenMS/PROCESSING/MISC/DataFilters.h>
Public Member Functions | |
| DataFilter () | |
| DataFilter (const FilterType type, const FilterOperation op, const double val, const String &meta_name="") | |
| ctor for common case of numerical filter More... | |
| DataFilter (const FilterType type, const FilterOperation op, const String &val, const String &meta_name="") | |
| ctor for common case of string filter More... | |
| String | toString () const |
| Returns a string representation of the filter. More... | |
| void | fromString (const String &filter) |
Parses filter and sets the filter properties accordingly. More... | |
| bool | operator== (const DataFilter &rhs) const |
| Equality operator. More... | |
| bool | operator!= (const DataFilter &rhs) const |
| Inequality operator. More... | |
Public Attributes | |
| FilterType | field { DataFilters::INTENSITY } |
| Field to filter. More... | |
| FilterOperation | op { DataFilters::GREATER_EQUAL} |
| Filter operation. More... | |
| double | value { 0.0 } |
| Value for comparison. More... | |
| String | value_string |
| String value for comparison (for meta data) More... | |
| String | meta_name |
| Name of the considered meta information (key) More... | |
| bool | value_is_numerical { false } |
use value or value_string ? More... | |
Representation of a peak/feature filter combining FilterType, FilterOperation and a value (either double or String)
|
inline |
|
inline |
ctor for common case of numerical filter
|
inline |
ctor for common case of string filter
| void fromString | ( | const String & | filter | ) |
Parses filter and sets the filter properties accordingly.
This method accepts the format provided by toString().
| Exception::InvalidValue | is thrown when the filter is not formatted properly |
| bool operator!= | ( | const DataFilter & | rhs | ) | const |
Inequality operator.
| bool operator== | ( | const DataFilter & | rhs | ) | const |
Equality operator.
| String toString | ( | ) | const |
Returns a string representation of the filter.
| FilterType field { DataFilters::INTENSITY } |
Field to filter.
Referenced by DataFilters::passes().
| String meta_name |
Name of the considered meta information (key)
Referenced by DataFilters::passes().
Filter operation.
Referenced by DataFilters::passes().
| double value { 0.0 } |
Value for comparison.
Referenced by DataFilters::passes().
| bool value_is_numerical { false } |
use value or value_string ?