ProteoWizard
SpectrumList_ABI_T2D.hpp
Go to the documentation of this file.
1//
2// $Id$
3//
4//
5// Original author: Matt Chambers <matt.chambers .@. vanderbilt.edu>
6//
7// Copyright 2010 Vanderbilt University - Nashville, TN 37232
8//
9// Licensed under the Apache License, Version 2.0 (the "License");
10// you may not use this file except in compliance with the License.
11// You may obtain a copy of the License at
12//
13// http://www.apache.org/licenses/LICENSE-2.0
14//
15// Unless required by applicable law or agreed to in writing, software
16// distributed under the License is distributed on an "AS IS" BASIS,
17// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18// See the License for the specific language governing permissions and
19// limitations under the License.
20//
21
22
26
27#ifdef PWIZ_READER_ABI_T2D
28#include "pwiz_aux/msrc/utility/vendor_api/ABI/T2D/T2D_Data.hpp"
30using namespace pwiz::vendor_api::ABI::T2D;
31#endif // PWIZ_READER_ABI_T2D
32
33
34namespace pwiz {
35namespace msdata {
36namespace detail {
37
39{
40 public:
41
42 virtual size_t size() const;
43 virtual const SpectrumIdentity& spectrumIdentity(size_t index) const;
44 virtual size_t find(const std::string& id) const;
45 virtual SpectrumPtr spectrum(size_t index, bool getBinaryData) const;
46 virtual SpectrumPtr spectrum(size_t index, bool getBinaryData, const pwiz::util::IntegerSet& msLevelsToCentroid) const;
47
48#ifdef PWIZ_READER_ABI_T2D
49 SpectrumList_ABI_T2D(const MSData& msd, DataPtr t2d_data);
50
51 private:
52
53 const MSData& msd_;
54 DataPtr t2d_data_;
55
56 size_t size_;
57
58 std::vector<SpectrumIdentity> index_;
59 std::map<std::string, size_t> idToIndexMap_;
60
61 void createIndex();
62#endif // PWIZ_READER_ABI_T2D
63};
64
65
66} // detail
67} // msdata
68} // pwiz
#define PWIZ_API_DECL
Definition Export.hpp:32
common functionality for base SpectrumList implementations
virtual size_t size() const
returns the number of spectra
virtual size_t find(const std::string &id) const
find id in the spectrum index (returns size() on failure)
virtual SpectrumPtr spectrum(size_t index, bool getBinaryData, const pwiz::util::IntegerSet &msLevelsToCentroid) const
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
a virtual container of integers, accessible via an iterator interface, stored as union of intervals
boost::shared_ptr< Spectrum > SpectrumPtr
Definition MSData.hpp:573
This is the root element of ProteoWizard; it represents the mzML element, defined as: intended to cap...
Definition MSData.hpp:850
Identifying information for a spectrum.
Definition MSData.hpp:471