OpenMS
Loading...
Searching...
No Matches
IsEmptySpectrum< SpectrumType > Class Template Reference

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

#include <OpenMS/KERNEL/RangeUtils.h>

Collaboration diagram for IsEmptySpectrum< SpectrumType >:
[legend]

Public Member Functions

 IsEmptySpectrum (bool reverse=false)
 Constructor.
 
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()

template<class SpectrumType >
IsEmptySpectrum ( bool  reverse = false)
inlineexplicit

Constructor.

Parameters
[in]reverseif reverse is true, operator() returns true if the spectrum is not empty

Member Function Documentation

◆ operator()()

template<class SpectrumType >
bool operator() ( const SpectrumType s) const
inline

Member Data Documentation

◆ reverse_

template<class SpectrumType >
bool reverse_
protected