ProteoWizard
pwiz
data
vendor_readers
ABI
T2D
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
23
#include "
pwiz/utility/misc/Export.hpp
"
24
#include "
pwiz/data/msdata/SpectrumListBase.hpp
"
25
#include "
pwiz/utility/misc/IntegerSet.hpp
"
26
27
#ifdef PWIZ_READER_ABI_T2D
28
#include "pwiz_aux/msrc/utility/vendor_api/ABI/T2D/T2D_Data.hpp"
29
#include "
pwiz/utility/misc/Once.hpp
"
30
using namespace
pwiz::vendor_api::ABI::T2D;
31
#endif // PWIZ_READER_ABI_T2D
32
33
34
namespace
pwiz
{
35
namespace
msdata {
36
namespace
detail {
37
38
class
PWIZ_API_DECL
SpectrumList_ABI_T2D
:
public
SpectrumListBase
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
pwiz::msdata::SpectrumIdentity
Identifying information for a spectrum.
Definition:
MSData.hpp:470
pwiz::msdata::detail::SpectrumList_ABI_T2D
Definition:
SpectrumList_ABI_T2D.hpp:38
pwiz
Definition:
ChromatogramList_Filter.hpp:36
PWIZ_API_DECL
#define PWIZ_API_DECL
Definition:
Export.hpp:32
Export.hpp
Once.hpp
SpectrumListBase.hpp
pwiz::msdata::SpectrumPtr
boost::shared_ptr< Spectrum > SpectrumPtr
Definition:
MSData.hpp:573
pwiz::msdata::MSData
This is the root element of ProteoWizard; it represents the mzML element, defined as: intended to cap...
Definition:
MSData.hpp:849
pwiz::msdata::SpectrumListBase
common functionality for base SpectrumList implementations
Definition:
SpectrumListBase.hpp:40
IntegerSet.hpp
pwiz::util::IntegerSet
a virtual container of integers, accessible via an iterator interface, stored as union of intervals
Definition:
IntegerSet.hpp:37
Generated by
1.8.17