OpenMS
HasMetaValue< MetaContainer > Class Template Reference

Predicate that determines if a class has a certain metavalue. More...

#include <OpenMS/KERNEL/RangeUtils.h>

Collaboration diagram for HasMetaValue< MetaContainer >:
[legend]

Public Member Functions

 HasMetaValue (String metavalue, bool reverse=false)
 Constructor. More...
 
bool operator() (const MetaContainer &s) const
 

Protected Attributes

String metavalue_key_
 
bool reverse_
 

Detailed Description

template<class MetaContainer>
class OpenMS::HasMetaValue< MetaContainer >

Predicate that determines if a class has a certain metavalue.

MetaContainer must be a MetaInfoInterface or have the same interface

Constructor & Destructor Documentation

◆ HasMetaValue()

HasMetaValue ( String  metavalue,
bool  reverse = false 
)
inline

Constructor.

Parameters
metavalueMetaValue that needs to be present.
reverseif reverse is true, operator() returns true if the metavalue does not exist.

Member Function Documentation

◆ operator()()

bool operator() ( const MetaContainer &  s) const
inline

Member Data Documentation

◆ metavalue_key_

String metavalue_key_
protected

◆ reverse_

bool reverse_
protected