ProteoWizard
Public Member Functions
MSLevelSorter Struct Reference
Inheritance diagram for MSLevelSorter:
pwiz::analysis::SpectrumList_Sorter::Predicate

List of all members.

Public Member Functions

virtual tribool less (const SpectrumIdentity &lhs, const SpectrumIdentity &rhs) const
 return values: true: lhs < rhs false: lhs >= rhs indeterminate: need to see the full Spectrum object to decide
virtual tribool less (const Spectrum &lhs, const Spectrum &rhs) const
 return values: true: lhs < rhs false: lhs >= rhs indeterminate: need a more detailed Spectrum object to decide
- Public Member Functions inherited from pwiz::analysis::SpectrumList_Sorter::Predicate
virtual ~Predicate ()

Detailed Description

Definition at line 59 of file SpectrumList_SorterTest.cpp.


Member Function Documentation

virtual tribool MSLevelSorter::less ( const SpectrumIdentity lhs,
const SpectrumIdentity rhs 
) const
inlinevirtual

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

Reimplemented from pwiz::analysis::SpectrumList_Sorter::Predicate.

Definition at line 61 of file SpectrumList_SorterTest.cpp.

{
return boost::logic::indeterminate;
}
virtual tribool MSLevelSorter::less ( const Spectrum lhs,
const Spectrum rhs 
) const
inlinevirtual

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

Reimplemented from pwiz::analysis::SpectrumList_Sorter::Predicate.

Definition at line 67 of file SpectrumList_SorterTest.cpp.

References pwiz::data::ParamContainer::cvParam(), pwiz::data::CVParam::empty(), MS_ms_level, and pwiz::data::CVParam::valueAs().

{
CVParam lhsMSLevel = lhs.cvParam(MS_ms_level);
CVParam rhsMSLevel = rhs.cvParam(MS_ms_level);
if (lhsMSLevel.empty() || rhsMSLevel.empty())
return boost::logic::indeterminate;
return lhsMSLevel.valueAs<int>() < rhsMSLevel.valueAs<int>();
}

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