24 #ifndef _SPECTRUMLIST_FILTER_HPP_ 25 #define _SPECTRUMLIST_FILTER_HPP_ 34 #include "boost/logic/tribool.hpp" 77 virtual bool done()
const {
return false;}
80 virtual std::string describe()
const = 0;
89 virtual size_t size()
const;
97 boost::shared_ptr<Impl>
impl_;
112 virtual bool done()
const;
113 virtual std::string
describe()
const {
return "set of spectrum indices"; }
126 virtual bool done()
const;
127 virtual std::string
describe()
const {
return "set of scan numbers"; }
140 virtual bool done()
const;
141 virtual std::string
describe()
const {
return "set of spectrum ids"; }
153 virtual boost::logic::tribool accept(
const msdata::Spectrum& spectrum)
const;
154 virtual std::string
describe()
const {
return "set of scan events"; }
166 virtual boost::logic::tribool accept(
const msdata::Spectrum& spectrum)
const;
167 virtual std::string
describe()
const {
return "scan time range"; }
180 virtual boost::logic::tribool accept(
const msdata::Spectrum& spectrum)
const;
181 virtual std::string
describe()
const {
return "set of MS levels"; }
193 virtual boost::logic::tribool accept(
const msdata::Spectrum& spectrum)
const;
194 virtual std::string
describe()
const {
return "set of charge states"; }
213 virtual boost::logic::tribool accept(
const msdata::Spectrum& spectrum)
const;
214 virtual std::string
describe()
const {
return "set of precursor M/Zs"; }
231 virtual boost::logic::tribool accept(
const msdata::Spectrum& spectrum)
const;
232 virtual std::string
describe()
const {
return "number of spectrum data points"; }
244 virtual boost::logic::tribool accept(
const msdata::Spectrum& spectrum)
const;
245 virtual std::string
describe()
const {
return "set of activation types"; }
258 virtual boost::logic::tribool accept(
const msdata::Spectrum& spectrum)
const;
259 virtual std::string
describe()
const {
return "set of analyzer types"; }
271 virtual boost::logic::tribool accept(
const msdata::Spectrum& spectrum)
const;
272 virtual std::string
describe()
const {
return "polarity"; }
286 virtual boost::logic::tribool accept(
const msdata::Spectrum& spectrum)
const;
287 virtual std::string
describe()
const {
return "set of M/Zs in spectrum"; }
301 virtual boost::logic::tribool accept(
const msdata::Spectrum& spectrum)
const;
302 virtual std::string
describe()
const {
return "Thermo scan filter pattern"; }
314 #endif // _SPECTRUMLIST_FILTER_HPP_
chemistry::MZTolerance mzt_
util::IntegerSet scanEventSet_
virtual std::string describe() const
return a string describing how the predicate filters
a virtual container of integers, accessible via an iterator interface, stored as union of intervals ...
virtual std::string describe() const
return a string describing how the predicate filters
virtual msdata::DetailLevel suggestedDetailLevel() const
can be overridden in subclasses that know they will need a certain detail level; it must be overridde...
boost::shared_ptr< Impl > impl_
virtual boost::logic::tribool accept(const msdata::SpectrumIdentity &spectrumIdentity) const
return values: true: accept the Spectrum false: reject the Spectrum indeterminate: need to see the fu...
virtual boost::logic::tribool accept(const msdata::SpectrumIdentity &spectrumIdentity) const
return values: true: accept the Spectrum false: reject the Spectrum indeterminate: need to see the fu...
virtual boost::logic::tribool accept(const msdata::SpectrumIdentity &spectrumIdentity) const
return values: true: accept the Spectrum false: reject the Spectrum indeterminate: need to see the fu...
virtual std::string describe() const
return a string describing how the predicate filters
boost::shared_ptr< Spectrum > SpectrumPtr
virtual boost::logic::tribool accept(const msdata::SpectrumIdentity &spectrumIdentity) const
return values: true: accept the Spectrum false: reject the Spectrum indeterminate: need to see the fu...
std::set< pwiz::cv::CVID > cvFilterItems
virtual boost::logic::tribool accept(const msdata::SpectrumIdentity &spectrumIdentity) const
return values: true: accept the Spectrum false: reject the Spectrum indeterminate: need to see the fu...
virtual std::string describe() const
return a string describing how the predicate filters
util::IntegerSet defaultArrayLengthSet_
virtual boost::logic::tribool accept(const msdata::Spectrum &spectrum) const
return true iff Spectrum is accepted
virtual msdata::DetailLevel suggestedDetailLevel() const
can be overridden in subclasses that know they will need a certain detail level; it must be overridde...
client-implemented filter predicate – called during construction of SpectrumList_Filter to create th...
std::set< double > precursorMzSet_
Inheritable pass-through implementation for wrapping a SpectrumList.
util::IntegerSet msLevelSet_
util::IntegerSet chargeStateSet_
std::set< pwiz::cv::CVID > cvFilterItems
boost::shared_ptr< SpectrumList > SpectrumListPtr
util::IntegerSet indexSet_
PWIZ_API_DECL std::ostream & operator<<(std::ostream &os, PepxmlRecordReader &prr)
virtual boost::logic::tribool accept(const msdata::SpectrumIdentity &spectrumIdentity) const
return values: true: accept the Spectrum false: reject the Spectrum indeterminate: need to see the fu...
virtual std::string describe() const
return a string describing how the predicate filters
std::set< std::string > idSet_
virtual std::string describe() const
return a string describing how the predicate filters
virtual std::string describe() const
return a string describing how the predicate filters
Identifying information for a spectrum.
virtual std::string describe() const
return a string describing how the predicate filters
virtual bool done() const
return true iff done accepting spectra; this allows early termination of the iteration through the or...
virtual std::string describe() const
return a string describing how the predicate filters
virtual std::string describe() const
return a string describing how the predicate filters
handles registration of IterationListeners and broadcast of update messages
virtual boost::logic::tribool accept(const msdata::SpectrumIdentity &spectrumIdentity) const
return values: true: accept the Spectrum false: reject the Spectrum indeterminate: need to see the fu...
virtual std::string describe() const
return a string describing how the predicate filters
util::IntegerSet scanNumberSet_
struct for expressing m/z tolerance in either amu or ppm
PWIZ_API_DECL std::istream & operator>>(std::istream &is, SpectrumList_Filter::Predicate::FilterMode &mode)
virtual boost::logic::tribool accept(const msdata::SpectrumIdentity &spectrumIdentity) const
return values: true: accept the Spectrum false: reject the Spectrum indeterminate: need to see the fu...
std::set< double > mzSet_
FilterMode
controls whether spectra that pass the predicate are included or excluded from the result ...
SpectrumList filter, for creating Spectrum sub-lists.
chemistry::MZTolerance tolerance_
virtual boost::logic::tribool accept(const msdata::SpectrumIdentity &spectrumIdentity) const
return values: true: accept the Spectrum false: reject the Spectrum indeterminate: need to see the fu...
The structure that captures the generation of a peak list (including the underlying acquisitions) ...
virtual std::string describe() const
return a string describing how the predicate filters
virtual std::string describe() const
return a string describing how the predicate filters
virtual std::string describe() const
return a string describing how the predicate filters
virtual boost::logic::tribool accept(const msdata::SpectrumIdentity &spectrumIdentity) const
return values: true: accept the Spectrum false: reject the Spectrum indeterminate: need to see the fu...