OpenMS
IDFilter::HasMinMetaValue< HitType > Struct Template Reference

Predicate to check if a HitType object has a minimum meta value. More...

#include <OpenMS/PROCESSING/ID/IDFilter.h>

Collaboration diagram for IDFilter::HasMinMetaValue< HitType >:
[legend]

Public Types

typedef HitType argument_type
 

Public Member Functions

 HasMinMetaValue (const String &key_, const double &value_)
 Constructor for HasMinMetaValue. More...
 
bool operator() (const HitType &hit) const
 Operator() function to check if a HitType object has a minimum meta value. More...
 

Public Attributes

String key
 
double value
 

Detailed Description

template<class HitType>
struct OpenMS::IDFilter::HasMinMetaValue< HitType >

Predicate to check if a HitType object has a minimum meta value.

This struct is used as a predicate in filtering operations to check if a HitType object has a meta value with a value greater than or equal to a specified threshold. Can be used with any HitType object that has a meta value with a double value.

Member Typedef Documentation

◆ argument_type

typedef HitType argument_type

Constructor & Destructor Documentation

◆ HasMinMetaValue()

HasMinMetaValue ( const String key_,
const double &  value_ 
)
inline

Constructor for HasMinMetaValue.

Parameters
key_The key of the meta value to check.
value_The minimum value threshold.

Member Function Documentation

◆ operator()()

bool operator() ( const HitType &  hit) const
inline

Operator() function to check if a HitType object has a minimum meta value.

Parameters
hitThe HitType object to check.
Returns
True if the HitType object has a meta value with a value greater than or equal to the threshold, false otherwise.

References DataValue::isEmpty().

Member Data Documentation

◆ key

String key

◆ value

double value