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 getAllOMSSANames(std::vector<String>& all_names)
const;
123 bool hasEnzyme(
const String& name)
const;
127 bool hasRegEx(
const String& cleavage_regex)
const;
130 bool hasEnzyme(
const Enzyme* enzyme)
const;
136 inline ConstEnzymeIterator
beginEnzyme()
const {
return const_enzymes_.begin(); }
137 inline ConstEnzymeIterator
endEnzyme()
const {
return const_enzymes_.end(); }
155 void readEnzymesFromFile_(
const String& filename);
161 void addEnzyme_(
const Enzyme* enzyme);
A more convenient string class.
Definition: String.h:57
ConstEnzymeIterator endEnzyme() const
Definition: EnzymesDB.h:137
Map< String, const Enzyme * > enzyme_regex_
Definition: EnzymesDB.h:165
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
std::set< const Enzyme * >::iterator EnzymeIterator
Definition: EnzymesDB.h:64
std::set< const Enzyme * > const_enzymes_
Definition: EnzymesDB.h:167
std::set< const Enzyme * >::const_iterator ConstEnzymeIterator
Definition: EnzymesDB.h:63
boost::unordered_map< String, const Enzyme * > enzyme_names_
Definition: EnzymesDB.h:163
ConstEnzymeIterator beginEnzyme() const
Definition: EnzymesDB.h:136
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