| 
    libpappsomspp
    
   Library for mass spectrometry 
   | 
 
provides a multimap to find quickly spectrum index from scan number More...
#include <spectrumcollectionhandlerinterface.h>
  
Public Member Functions | |
| MsRunReaderScanNumberMultiMap () | |
| virtual | ~MsRunReaderScanNumberMultiMap () | 
| virtual void | setQualifiedMassSpectrum (const QualifiedMassSpectrum &spectrum) override | 
| virtual bool | needPeakList () const override | 
| tells if we need the peak list (if we want the binary data) for each spectrum   | |
| std::size_t | getSpectrumIndexFromScanNumber (std::size_t scan_number) const | 
  Public Member Functions inherited from pappso::SpectrumCollectionHandlerInterface | |
| virtual bool | needMsLevelPeakList (unsigned int ms_level) const final | 
| tells if we need the peak list (if we want the binary data) for each spectrum, given an MS level   | |
| virtual void | setNeedMsLevelPeakList (unsigned int ms_level, bool want_peak_list) final | 
| tells if we need the peak list given   | |
| virtual bool | shouldStop () | 
| virtual void | loadingEnded () | 
| virtual void | spectrumListHasSize (std::size_t size) | 
| virtual void | setReadAhead (bool is_read_ahead) final | 
| use threads to read a spectrum by batch of batch_size   | |
| virtual bool | isReadAhead () const | 
| tells if we want to read ahead spectrum   | |
Private Attributes | |
| std::multimap< std::size_t, std::size_t > | m_mmap_scan2index | 
provides a multimap to find quickly spectrum index from scan number
Definition at line 131 of file spectrumcollectionhandlerinterface.h.
| pappso::MsRunReaderScanNumberMultiMap::MsRunReaderScanNumberMultiMap | ( | ) | 
Definition at line 149 of file spectrumcollectionhandlerinterface.cpp.
      
  | 
  virtual | 
Definition at line 155 of file spectrumcollectionhandlerinterface.cpp.
| std::size_t pappso::MsRunReaderScanNumberMultiMap::getSpectrumIndexFromScanNumber | ( | std::size_t | scan_number | ) | const | 
Definition at line 191 of file spectrumcollectionhandlerinterface.cpp.
References m_mmap_scan2index.
      
  | 
  overridevirtual | 
tells if we need the peak list (if we want the binary data) for each spectrum
Implements pappso::SpectrumCollectionHandlerInterface.
Definition at line 162 of file spectrumcollectionhandlerinterface.cpp.
      
  | 
  overridevirtual | 
Implements pappso::SpectrumCollectionHandlerInterface.
Definition at line 168 of file spectrumcollectionhandlerinterface.cpp.
References pappso::QualifiedMassSpectrum::getMassSpectrumId(), pappso::MassSpectrumId::getNativeId(), pappso::MassSpectrumId::getSpectrumIndex(), and m_mmap_scan2index.
      
  | 
  private | 
Definition at line 135 of file spectrumcollectionhandlerinterface.h.
Referenced by getSpectrumIndexFromScanNumber(), and setQualifiedMassSpectrum().