Go to the documentation of this file.
25 #ifndef _PEPTIDEID_HPP_
26 #define _PEPTIDEID_HPP_
30 #include <boost/shared_ptr.hpp>
31 #include <boost/iterator/iterator_facade.hpp>
53 Location(std::string nativeID,
double retentionTimeSec,
double mz)
54 : nativeID(nativeID),
mz(
mz), retentionTimeSec(retentionTimeSec)
69 : nativeID(
record.nativeID),
71 protein_descr(
record.protein_descr),
73 retentionTimeSec(
record.retentionTimeSec),
74 normalizedScore(
record.normalizedScore)
84 virtual bool equal(
const boost::shared_ptr<IteratorInternal>& li)
const = 0;
91 class Iterator :
public boost::iterator_facade<Iterator,
92 const PeptideID::Record,
93 boost::forward_traversal_tag>
98 Iterator(boost::shared_ptr<PeptideID::IteratorInternal> pimpl)
103 friend class boost::iterator_core_access;
109 return pimpl->equal(li.
pimpl);
114 return pimpl->dereference();
117 boost::shared_ptr<PeptideID::IteratorInternal>
pimpl;
149 #endif // _PEPTIDEID_HPP_
bool operator()(const PeptideID::Location &a, const PeptideID::Location &b) const
bool operator()(const PeptideID::Record &a, const PeptideID::Record &b) const
virtual Iterator end() const =0
const PeptideID::Record & dereference() const
virtual Iterator begin() const =0
This is an interface for classes that allow access to data sources of identified peptides.
virtual void increment()=0
std::string protein_descr
Record(const Record &record)
boost::shared_ptr< PeptideID::IteratorInternal > pimpl
virtual Record record(const Location &location) const =0
PWIZ_API_DECL const Record & record(Type type)
returns the amino acid's Record by type
bool equal(const PeptideID::Iterator &li) const
virtual bool equal(const boost::shared_ptr< IteratorInternal > &li) const =0
double mz(double neutralMass, int protonDelta, int electronDelta=0, int neutronDelta=0)
Location(std::string nativeID, double retentionTimeSec, double mz)
Iterator(const Iterator &it)
virtual const PeptideID::Record & dereference() const =0
Iterator(boost::shared_ptr< PeptideID::IteratorInternal > pimpl)