OpenMS
IDFilter::HasMetaValue< HitType > Struct Template Reference

Is a meta value with given key and value set on this hit? More...

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

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

Public Types

typedef HitType argument_type
 

Public Member Functions

 HasMetaValue (const String &key_, const DataValue &value_)
 
bool operator() (const HitType &hit) const
 

Public Attributes

String key
 
DataValue value
 

Detailed Description

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

Is a meta value with given key and value set on this hit?

If the value is empty (DataValue::EMPTY), only the existence of a meta value with the given key is checked.

Member Typedef Documentation

◆ argument_type

typedef HitType argument_type

Constructor & Destructor Documentation

◆ HasMetaValue()

HasMetaValue ( const String key_,
const DataValue value_ 
)
inline

Member Function Documentation

◆ operator()()

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

References DataValue::isEmpty().

Member Data Documentation

◆ key

String key

◆ value

DataValue value