| OpenMS 2.5.0

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

Predicate that determines if a spectrum is empty. More...

`#include <OpenMS/KERNEL/RangeUtils.h>`

Inheritance diagram for IsEmptySpectrum< SpectrumType >:

## Public Member Functions

| IsEmptySpectrum (bool reverse=false)
| Constructor. More...
bool | operator() (const SpectrumType &s) const

## Protected Attributes

bool | reverse_

## Detailed Description

### template<class SpectrumType>
class OpenMS::IsEmptySpectrum< SpectrumType >

Predicate that determines if a spectrum is empty.

SpectrumType must have a empty() method

## Constructor & Destructor Documentation

## ◆ IsEmptySpectrum()

IsEmptySpectrum | ( | bool | reverse = `false` | ) |

inline explicit

Constructor.

Parameters

  reverse | if `reverse` is true, operator() returns true if the spectrum is not empty

## Member Function Documentation

## ◆ operator()()

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

inline

References IsEmptySpectrum< SpectrumType >::reverse_.

## Member Data Documentation

## ◆ reverse_

bool reverse_

protected

Referenced by IsEmptySpectrum< SpectrumType >::operator()().