25#ifndef _SPECTRUMLIST_SORTER_HPP_
26#define _SPECTRUMLIST_SORTER_HPP_
31#include "boost/logic/tribool.hpp"
53 {
return boost::logic::indeterminate;}
72 virtual size_t size()
const;
Provides a custom-sorted spectrum list.
SpectrumList_Sorter(SpectrumList_Sorter &)
virtual size_t size() const
returns the number of spectra
boost::shared_ptr< Impl > impl_
virtual const msdata::SpectrumIdentity & spectrumIdentity(size_t index) const
access to a spectrum index
SpectrumList_Sorter & operator=(SpectrumList_Sorter &)
SpectrumList_Sorter(const msdata::SpectrumListPtr &inner, const Predicate &predicate, bool stable=false)
virtual msdata::SpectrumPtr spectrum(size_t index, bool getBinaryData=false) const
retrieve a spectrum by index
virtual boost::logic::tribool less(const msdata::Spectrum &lhs, const msdata::Spectrum &rhs) const
return values: true: lhs < rhs false: lhs >= rhs indeterminate: need a more detailed Spectrum object ...
Inheritable pass-through implementation for wrapping a SpectrumList.
boost::shared_ptr< SpectrumList > SpectrumListPtr
boost::shared_ptr< Spectrum > SpectrumPtr
client-implemented sort predicate – called during construction of SpectrumList_Sorter to sort the und...
virtual boost::logic::tribool less(const msdata::SpectrumIdentity &lhs, const msdata::SpectrumIdentity &rhs) const
return values: true: lhs < rhs false: lhs >= rhs indeterminate: need to see the full Spectrum object ...
virtual boost::logic::tribool less(const msdata::Spectrum &lhs, const msdata::Spectrum &rhs) const
return values: true: lhs < rhs false: lhs >= rhs indeterminate: need a more detailed Spectrum object ...
The structure that captures the generation of a peak list (including the underlying acquisitions)
Identifying information for a spectrum.
size_t index
the zero-based, consecutive index of the spectrum in the SpectrumList.