Classes | Public Member Functions | Private Member Functions | Private Attributes
pwiz::analysis::SpectrumList_PrecursorRefine Class Reference

SpectrumList wrapper that recalculates precursor info on spectrum() requests. More...

#include <SpectrumList_PrecursorRefine.hpp>

Inheritance diagram for pwiz::analysis::SpectrumList_PrecursorRefine:
pwiz::msdata::SpectrumListWrapper pwiz::msdata::SpectrumList

List of all members.


struct  PrecursorInfo

Public Member Functions

 SpectrumList_PrecursorRefine (const msdata::MSData &msd)
 constructor needs the full MSData object for instrument info; SpectrumList_PrecursorRefine holds a reference to the original SpectrumListPtr
 ~SpectrumList_PrecursorRefine ()
SpectrumList interface
virtual msdata::SpectrumPtr spectrum (size_t index, bool getBinaryData=false) const
 retrieve a spectrum by index
- Public Member Functions inherited from pwiz::msdata::SpectrumListWrapper
 SpectrumListWrapper (const SpectrumListPtr &inner)
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 SpectrumIdentityspectrumIdentity (size_t index) const
 access to a spectrum index
virtual SpectrumPtr spectrum (size_t index, DetailLevel detailLevel) const
 retrieve a spectrum by index
virtual const
boost::shared_ptr< const
dataProcessingPtr () const
 returns the data processing affecting spectra retrieved through this interface
- Public Member Functions inherited from pwiz::msdata::SpectrumList
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 ~SpectrumList ()

Private Member Functions

double RefineMassVal (double initialEstimate, size_t index) const
 SpectrumList_PrecursorRefine (SpectrumList_PrecursorRefine &)
SpectrumList_PrecursorRefineoperator= (SpectrumList_PrecursorRefine &)

Private Attributes

boost::shared_ptr< Impl > impl_
int numRefined
int numTotal

Additional Inherited Members

- Protected Attributes inherited from pwiz::msdata::SpectrumListWrapper
SpectrumListPtr inner_
DataProcessingPtr dp_

Detailed Description

SpectrumList wrapper that recalculates precursor info on spectrum() requests.

Definition at line 37 of file SpectrumList_PrecursorRefine.hpp.

Constructor & Destructor Documentation

pwiz::analysis::SpectrumList_PrecursorRefine::SpectrumList_PrecursorRefine ( const msdata::MSData msd)

constructor needs the full MSData object for instrument info; SpectrumList_PrecursorRefine holds a reference to the original SpectrumListPtr

pwiz::analysis::SpectrumList_PrecursorRefine::~SpectrumList_PrecursorRefine ( )
pwiz::analysis::SpectrumList_PrecursorRefine::SpectrumList_PrecursorRefine ( SpectrumList_PrecursorRefine )

Member Function Documentation

virtual msdata::SpectrumPtr pwiz::analysis::SpectrumList_PrecursorRefine::spectrum ( size_t  index,
bool  getBinaryData = false 
) const

retrieve a spectrum by index

  • binary data arrays will be provided if (getBinaryData == true);
  • client may assume the underlying Spectrum* is valid

Implements pwiz::msdata::SpectrumListWrapper.

double pwiz::analysis::SpectrumList_PrecursorRefine::RefineMassVal ( double  initialEstimate,
size_t  index 
) const
SpectrumList_PrecursorRefine& pwiz::analysis::SpectrumList_PrecursorRefine::operator= ( SpectrumList_PrecursorRefine )

Member Data Documentation

boost::shared_ptr<Impl> pwiz::analysis::SpectrumList_PrecursorRefine::impl_

Definition at line 63 of file SpectrumList_PrecursorRefine.hpp.

int pwiz::analysis::SpectrumList_PrecursorRefine::numRefined

Definition at line 68 of file SpectrumList_PrecursorRefine.hpp.

int pwiz::analysis::SpectrumList_PrecursorRefine::numTotal

Definition at line 69 of file SpectrumList_PrecursorRefine.hpp.

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