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 More... | |
virtual bool | empty () const |
returns true iff (size() == 0) and (dataProcessingPtr.get() == NULL) More... | |
virtual const SpectrumIdentity & | spectrumIdentity (size_t index) const |
access to a spectrum index More... | |
virtual SpectrumPtr | spectrum (size_t index, bool getBinaryData) const |
retrieve a spectrum by index More... | |
virtual const boost::shared_ptr< const DataProcessing > | dataProcessingPtr () const |
returns the data processing affecting spectra retrieved through this interface More... | |
![]() | |
virtual size_t | find (const std::string &id) const |
find id in the spectrum index (returns size() on failure) More... | |
virtual IndexList | findNameValue (const std::string &name, const std::string &value) const |
find all spectrum indexes with specified name/value pair More... | |
virtual IndexList | findSpotID (const std::string &spotID) const |
find all spectrum indexes with spotID (returns empty vector on failure) More... | |
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 More... | |
virtual SpectrumPtr | spectrum (size_t index, DetailLevel detailLevel) const |
retrieve a spectrum by index More... | |
void | warn_once (const char *msg) const |
makes it easy to issue simple warnings without repeats (based on string hash) More... | |
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 717 of file MSData.hpp.
|
inlinevirtual |
returns the number of spectra
Implements pwiz::msdata::SpectrumList.
Definition at line 724 of file MSData.hpp.
|
inlinevirtual |
returns true iff (size() == 0) and (dataProcessingPtr.get() == NULL)
Reimplemented from pwiz::msdata::SpectrumList.
Definition at line 725 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 719 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 720 of file MSData.hpp.
Referenced by testSpectrumList().