| OpenMS 2.5.0

Public Member Functions | Protected Attributes | List of all members
HasMetaValue< MetaContainer > Class Template Reference
Kernel » RangeUtils

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

  metavalue | MetaValue that needs to be present.
  reverse | if `reverse` is true, operator() returns true if the metavalue does not exist.

## Member Function Documentation

## ◆ operator()()

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

inline

References HasMetaValue< MetaContainer >::metavalue_key_, and HasMetaValue< MetaContainer >::reverse_.

## Member Data Documentation

## ◆ metavalue_key_

String metavalue_key_

protected

Referenced by HasMetaValue< MetaContainer >::operator()().

## ◆ reverse_

bool reverse_

protected

Referenced by HasMetaValue< MetaContainer >::operator()().