ProteoWizard
|
Simple writeable in-memory implementation of SpectrumList. More...
#include <MSData.hpp>
Public Member Functions | |
virtual size_t | size () const |
returns the number of spectra | |
virtual bool | empty () const |
returns true iff (size() == 0) and (dataProcessingPtr.get() == NULL) | |
virtual const SpectrumIdentity & | spectrumIdentity (size_t index) const |
access to a spectrum index | |
virtual SpectrumPtr | spectrum (size_t index, bool getBinaryData) const |
retrieve a spectrum by index | |
virtual const boost::shared_ptr< const DataProcessing > | dataProcessingPtr () const |
returns the data processing affecting spectra retrieved through this interface | |
![]() | |
virtual size_t | find (const std::string &id) const |
find id in the spectrum index (returns size() on failure) | |
virtual IndexList | findNameValue (const std::string &name, const std::string &value) const |
find all spectrum indexes with specified name/value pair | |
virtual IndexList | findSpotID (const std::string &spotID) const |
find all spectrum indexes with spotID (returns empty vector on failure) | |
virtual SpectrumPtr | spectrum (const SpectrumPtr &seed, bool getBinaryData) const |
get a copy of the seed spectrum, optionally with its binary data populated this is useful for formats like mzML that can delay loading of binary data | |
virtual SpectrumPtr | spectrum (size_t index, DetailLevel detailLevel) const |
retrieve a spectrum by index | |
virtual | ~SpectrumList () |
Public Attributes | |
std::vector< SpectrumPtr > | spectra |
DataProcessingPtr | dp |
Simple writeable in-memory implementation of SpectrumList.
Note: This spectrum() implementation returns internal SpectrumPtrs.
Definition at line 710 of file MSData.hpp.
|
inlinevirtual |
returns the number of spectra
Implements pwiz::msdata::SpectrumList.
Definition at line 717 of file MSData.hpp.
|
inlinevirtual |
returns true iff (size() == 0) and (dataProcessingPtr.get() == NULL)
Reimplemented from pwiz::msdata::SpectrumList.
Definition at line 718 of file MSData.hpp.
|
virtual |
access to a spectrum index
Implements pwiz::msdata::SpectrumList.
|
virtual |
retrieve a spectrum by index
Implements pwiz::msdata::SpectrumList.
|
virtual |
returns the data processing affecting spectra retrieved through this interface
Reimplemented from pwiz::msdata::SpectrumList.
std::vector<SpectrumPtr> pwiz::msdata::SpectrumListSimple::spectra |
Definition at line 712 of file MSData.hpp.
Referenced by initializeSpectrumList(), test(), testDeisotoping(), testIntensityThresholding(), testMS2Denoising(), testPrecursorMassRemoval(), testSpectrumList(), testSpectrumListWithPositions(), testSpectrumListWriteProgress(), and testZeroSamplesFilter().
DataProcessingPtr pwiz::msdata::SpectrumListSimple::dp |
Definition at line 713 of file MSData.hpp.
Referenced by testSpectrumList().