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

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 More...
 
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 More...
 
- Public Member Functions inherited from pwiz::analysis::SpectrumList_Sorter::Predicate
virtual ~Predicate ()
 

Detailed Description

Definition at line 42 of file SpectrumList_SorterTest.cpp.

Member Function Documentation

§ less() [1/2]

virtual tribool DefaultArrayLengthSorter::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 44 of file SpectrumList_SorterTest.cpp.

46  {
47  return boost::logic::indeterminate;
48  }

§ less() [2/2]

virtual tribool DefaultArrayLengthSorter::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 50 of file SpectrumList_SorterTest.cpp.

References pwiz::msdata::Spectrum::defaultArrayLength, and pwiz::msdata::SpectrumIdentity::id.

52  {
53  if (lhs.id.empty())
54  return boost::logic::indeterminate;
55  return lhs.defaultArrayLength < rhs.defaultArrayLength;
56  }
std::string id
a unique identifier for this spectrum. It should be expected that external files may use this identif...
Definition: MSData.hpp:475
size_t defaultArrayLength
default length of binary data arrays contained in this element.
Definition: MSData.hpp:507

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