24 #ifndef _PEPTIDEDATABASE_HPP_
25 #define _PEPTIDEDATABASE_HPP_
47 :
C(c),
H(h),
N(n),
O(o),
S(s)
66 : id_ipi(0), abundance(1), mass(0), sequenceKey(0)
80 static std::auto_ptr<PeptideDatabase> create();
81 static std::auto_ptr<const PeptideDatabase> create(
const std::string& filename);
84 virtual int size()
const = 0;
90 virtual void write(
const std::string& filename)
const = 0;
100 iterator mass_lower_bound(
double mass)
const;
101 iterator mass_upper_bound(
double mass)
const;
109 #endif // _PEPTIDEDATABASE_HPP_