Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | Protected Attributes | List of all members
HasMetaValue< MetaContainer > Class Template Reference

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

#include <OpenMS/KERNEL/RangeUtils.h>

Inheritance diagram for HasMetaValue< MetaContainer >:

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

OpenMS / TOPP release 2.3.0 Documentation generated on Tue Jan 9 2018 18:22:09 using doxygen 1.8.13