30 #include "boost/logic/tribool.hpp" 37 using boost::logic::tribool;
47 return boost::logic::indeterminate;
54 return boost::logic::indeterminate;
64 return boost::logic::indeterminate;
73 return boost::logic::indeterminate;
100 *
os_ <<
"Original spectrum list (" << originalList->size() <<
"):\n";
102 write(*originalList);
108 *
os_ <<
"Default array length sorted spectrum list (" << defaultArrayLengthSortedList->size() <<
"):\n";
110 write(*defaultArrayLengthSortedList);
116 *
os_ <<
"MS level unstable sorted spectrum list (" << msLevelUnstableSortedList->size() <<
"):\n";
118 write(*msLevelUnstableSortedList);
124 *
os_ <<
"MS level stable sorted spectrum list (" << msLevelStableSortedList->size() <<
"):\n";
126 write(*msLevelStableSortedList);
132 *
os_ <<
"Silly (nested) sorted spectrum list (" << sillySortedList->size() <<
"):\n";
134 write(*sillySortedList);
154 s = originalList->spectrum(0);
165 s = defaultArrayLengthSortedList->spectrum(0);
168 s = defaultArrayLengthSortedList->spectrum(1);
171 s = defaultArrayLengthSortedList->spectrum(2);
173 s = defaultArrayLengthSortedList->spectrum(3);
175 for (
size_t i=1, end=defaultArrayLengthSortedList->size(); i < end; ++i)
176 unit_assert(defaultArrayLengthSortedList->spectrum(i)->defaultArrayLength >=
177 defaultArrayLengthSortedList->spectrum(i-1)->defaultArrayLength);
185 s = msLevelUnstableSortedList->spectrum(0);
187 s = msLevelUnstableSortedList->spectrum(1);
189 s = msLevelUnstableSortedList->spectrum(2);
191 s = msLevelUnstableSortedList->spectrum(3);
204 s = msLevelStableSortedList->spectrum(0);
207 s = msLevelStableSortedList->spectrum(1);
210 s = msLevelStableSortedList->spectrum(2);
213 s = msLevelStableSortedList->spectrum(3);
224 s = sillySortedList->spectrum(0);
227 s = sillySortedList->spectrum(1);
230 s = sillySortedList->spectrum(2);
232 s = sillySortedList->spectrum(3);
234 for (
size_t i=1, end=sillySortedList->size(); i < end; ++i)
235 unit_assert(sillySortedList->spectrum(i)->defaultArrayLength >=
236 sillySortedList->spectrum(i-1)->defaultArrayLength);
240 int main(
int argc,
char* argv[])
246 if (argc>1 && !strcmp(argv[1],
"-v"))
os_ = &cout;
CVParam cvParam(CVID cvid) const
finds cvid in the container:
boost::shared_ptr< Spectrum > SpectrumPtr
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 ...
MS_ms_level
ms level: Stages of ms achieved in a multi stage mass spectrometry experiment.
std::string id
a unique identifier for this spectrum. It should be expected that external files may use this identif...
Provides a custom-sorted spectrum list.
size_t defaultArrayLength
default length of binary data arrays contained in this element.
client-implemented sort predicate – called during construction of SpectrumList_Sorter to sort the u...
#define unit_assert_operator_equal(expected, actual)
Run run
a run in mzML should correspond to a single, consecutive and coherent set of scans on an instrument...
int main(int argc, char *argv[])
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 ...
PWIZ_API_DECL void write(minimxml::XMLWriter &writer, const CV &cv)
boost::shared_ptr< SpectrumList > SpectrumListPtr
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 ...
SpectrumListPtr spectrumListPtr
all mass spectra and the acquisitions underlying them are described and attached here. Subsidiary data arrays are also both described and attached here.
Identifying information for a spectrum.
PWIZ_API_DECL void initializeTiny(IdentData &mzid)
#define TEST_PROLOG(argc, argv)
The structure that captures the generation of a peak list (including the underlying acquisitions) ...
value_type valueAs() const
templated value access with type conversion
This is the root element of ProteoWizard; it represents the mzML element, defined as: intended to cap...
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 ...
represents a tag-value pair, where the tag comes from the controlled vocabulary