23 #ifndef _PROTEOMEDATA_HPP_ 24 #define _PROTEOMEDATA_HPP_ 29 #include <boost/shared_ptr.hpp> 38 Protein(
const std::string&
id,
size_t index,
const std::string& description,
const std::string& sequence);
59 virtual size_t size()
const = 0;
61 virtual ProteinPtr protein(
size_t index,
bool getSequence =
true)
const = 0;
63 virtual bool empty()
const;
65 virtual size_t find(
const std::string&
id)
const;
67 virtual IndexList findKeyword(
const std::string& keyword,
bool caseSensitive =
true)
const;
82 virtual size_t size()
const {
return proteins.size();}
83 virtual bool empty()
const {
return proteins.empty();}
84 virtual ProteinPtr protein(
size_t index,
bool getSequence =
true)
const;
109 #endif // _PROTEOMEDATA_HPP_
std::vector< ProteinPtr > proteins
virtual bool empty() const
represents a peptide or polypeptide (a sequence of amino acids)
virtual size_t size() const
ProteinListPtr proteinListPtr
boost::shared_ptr< ProteinList > ProteinListPtr
boost::shared_ptr< Protein > ProteinPtr