ProteoWizard
Public Member Functions | List of all members
EvenPredicate Struct Reference
Inheritance diagram for EvenPredicate:
pwiz::analysis::SpectrumList_Filter::Predicate

Public Member Functions

virtual tribool accept (const SpectrumIdentity &spectrumIdentity) const
 return values: true: accept the Spectrum false: reject the Spectrum indeterminate: need to see the full Spectrum object to decide More...
 
- Public Member Functions inherited from pwiz::analysis::SpectrumList_Filter::Predicate
virtual msdata::DetailLevel suggestedDetailLevel () const
 can be overridden in subclasses that know they will need a certain detail level; it must be overridden to return DetailLevel_FullData if binary data is needed More...
 
virtual boost::logic::tribool accept (const msdata::Spectrum &spectrum) const
 return true iff Spectrum is accepted More...
 
virtual bool done () const
 return true iff done accepting spectra; this allows early termination of the iteration through the original SpectrumList, possibly using assumptions about the order of the iteration (e.g. More...
 
virtual ~Predicate ()
 

Detailed Description

Definition at line 143 of file SpectrumList_FilterTest.cpp.

Member Function Documentation

§ accept()

virtual tribool EvenPredicate::accept ( const SpectrumIdentity spectrumIdentity) const
inlinevirtual

return values: true: accept the Spectrum false: reject the Spectrum indeterminate: need to see the full Spectrum object to decide

Implements pwiz::analysis::SpectrumList_Filter::Predicate.

Definition at line 145 of file SpectrumList_FilterTest.cpp.

References pwiz::msdata::SpectrumIdentity::index.

146  {
147  return spectrumIdentity.index%2 == 0;
148  }
size_t index
the zero-based, consecutive index of the spectrum in the SpectrumList.
Definition: MSData.hpp:472

The documentation for this struct was generated from the following file: