35 #ifndef OPENMS_CHEMISTRY_ENZYMESDB_H 36 #define OPENMS_CHEMISTRY_ENZYMESDB_H 39 #include <boost/unordered_map.hpp> 95 const Enzyme* getEnzymeByRegEx(
const String& cleavage_regex)
const;
98 void setEnzymes(
const String& filename);
102 void addEnzyme(
const Enzyme& enzyme);
108 void getAllNames(std::vector<String>& all_names)
const;
111 void getAllXTandemNames(std::vector<String>& all_names)
const;
114 void getAllCometNames(std::vector<String>& all_names)
const;
117 void getAllOMSSANames(std::vector<String>& all_names)
const;
120 void getAllMSGFNames(std::vector<String>& all_names)
const;
129 bool hasEnzyme(
const String& name)
const;
133 bool hasRegEx(
const String& cleavage_regex)
const;
136 bool hasEnzyme(
const Enzyme* enzyme)
const;
142 inline ConstEnzymeIterator
beginEnzyme()
const {
return const_enzymes_.begin(); }
143 inline ConstEnzymeIterator
endEnzyme()
const {
return const_enzymes_.end(); }
161 void readEnzymesFromFile_(
const String& filename);
167 void addEnzyme_(
const Enzyme* enzyme);
std::set< const Enzyme * >::iterator EnzymeIterator
Definition: EnzymesDB.h:64
A more convenient string class.
Definition: String.h:57
ConstEnzymeIterator endEnzyme() const
Definition: EnzymesDB.h:143
Map< String, const Enzyme * > enzyme_regex_
Definition: EnzymesDB.h:171
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
std::set< const Enzyme * > const_enzymes_
Definition: EnzymesDB.h:173
std::set< const Enzyme * >::const_iterator ConstEnzymeIterator
Definition: EnzymesDB.h:63
boost::unordered_map< String, const Enzyme * > enzyme_names_
Definition: EnzymesDB.h:169
ConstEnzymeIterator beginEnzyme() const
Definition: EnzymesDB.h:142
Representation of an enzyme.
Definition: Enzyme.h:56
enzyme database which holds enzymes
Definition: EnzymesDB.h:56
Map class based on the STL map (containing several convenience functions)
Definition: Map.h:51
static EnzymesDB * getInstance()
this member function serves as a replacement of the constructor
Definition: EnzymesDB.h:68