OpenMS
Loading...
Searching...
No Matches
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.
 
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()

template<class MetaContainer >
HasMetaValue ( String  metavalue,
bool  reverse = false 
)
inline

Constructor.

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

Member Function Documentation

◆ operator()()

template<class MetaContainer >
bool operator() ( const MetaContainer &  s) const
inline

Member Data Documentation

◆ metavalue_key_

template<class MetaContainer >
String metavalue_key_
protected

◆ reverse_

template<class MetaContainer >
bool reverse_
protected