ProteoWizard
Public Member Functions | List of all members
pwiz::analysis::SpectrumList_Sorter::Predicate Struct Reference

client-implemented sort predicate – called during construction of SpectrumList_Sorter to sort the underlying spectrum list More...

#include <SpectrumList_Sorter.hpp>

Inheritance diagram for pwiz::analysis::SpectrumList_Sorter::Predicate:
DefaultArrayLengthSorter MSLevelSorter pwiz::analysis::SpectrumList_SorterPredicate_ScanStartTime

Public Member Functions

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 to decide More...
 
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 to decide More...
 
virtual ~Predicate ()
 

Detailed Description

client-implemented sort predicate – called during construction of SpectrumList_Sorter to sort the underlying spectrum list

Definition at line 45 of file SpectrumList_Sorter.hpp.

Constructor & Destructor Documentation

§ ~Predicate()

virtual pwiz::analysis::SpectrumList_Sorter::Predicate::~Predicate ( )
inlinevirtual

Definition at line 63 of file SpectrumList_Sorter.hpp.

63 {}

Member Function Documentation

§ less() [1/2]

virtual boost::logic::tribool pwiz::analysis::SpectrumList_Sorter::Predicate::less ( const msdata::SpectrumIdentity lhs,
const msdata::SpectrumIdentity rhs 
) const
inlinevirtual

return values: true: lhs < rhs false: lhs >= rhs indeterminate: need to see the full Spectrum object to decide

Reimplemented in MSLevelSorter, and DefaultArrayLengthSorter.

Definition at line 51 of file SpectrumList_Sorter.hpp.

53  {return boost::logic::indeterminate;}

§ less() [2/2]

virtual boost::logic::tribool pwiz::analysis::SpectrumList_Sorter::Predicate::less ( const msdata::Spectrum lhs,
const msdata::Spectrum rhs 
) const
inlinevirtual

return values: true: lhs < rhs false: lhs >= rhs indeterminate: need a more detailed Spectrum object to decide

Reimplemented in pwiz::analysis::SpectrumList_SorterPredicate_ScanStartTime, MSLevelSorter, and DefaultArrayLengthSorter.

Definition at line 59 of file SpectrumList_Sorter.hpp.

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

61  {return lhs.index < rhs.index;}

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