35 #ifndef OPENMS_CHEMISTRY_RESIDUEDB_H 36 #define OPENMS_CHEMISTRY_RESIDUEDB_H 39 #include <boost/unordered_map.hpp> 47 class ResidueModification;
93 Size getNumberOfResidues()
const;
97 Size getNumberOfModifiedResidues()
const;
103 const Residue* getResidue(
const unsigned char& one_letter_code)
const;
139 const std::set<const Residue*> getResidues(
const String& residue_set =
"All")
const;
142 const std::set<String>& getResidueSets()
const;
145 void setResidues(
const String& filename);
148 void addResidue(
const Residue& residue);
154 bool hasResidue(
const String& name)
const;
158 bool hasResidue(
const Residue* residue)
const;
166 inline ResidueIterator
endResidue() {
return residues_.end(); }
168 inline ResidueConstIterator
beginResidue()
const {
return const_residues_.begin(); }
170 inline ResidueConstIterator
endResidue()
const {
return const_residues_.end(); }
197 void readResiduesFromFile_(
const String& filename);
206 void clearResidues_();
209 void buildResidueNames_();
211 void addResidue_(
Residue* residue);
boost::unordered_map< String, Residue * > residue_names_
Definition: ResidueDB.h:213
A more convenient string class.
Definition: String.h:57
std::set< Residue * > residues_
Definition: ResidueDB.h:220
std::set< Residue * >::iterator ResidueIterator
Definition: ResidueDB.h:68
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
ResidueConstIterator beginResidue() const
Definition: ResidueDB.h:168
Representation of a residue.
Definition: Residue.h:62
static ResidueDB * getInstance()
this member function serves as a replacement of the constructor
Definition: ResidueDB.h:73
ResidueConstIterator endResidue() const
Definition: ResidueDB.h:170
Map< String, Map< String, Residue * > > residue_mod_names_
Definition: ResidueDB.h:218
Map< String, std::set< const Residue * > > residues_by_set_
Definition: ResidueDB.h:228
std::set< const Residue * >::const_iterator ResidueConstIterator
Definition: ResidueDB.h:69
ResidueIterator endResidue()
Definition: ResidueDB.h:166
residue data base which holds residues
Definition: ResidueDB.h:61
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:128
std::set< String > residue_sets_
Definition: ResidueDB.h:230
std::set< Residue * > modified_residues_
Definition: ResidueDB.h:224
Map class based on the STL map (containing several convenience functions)
Definition: Map.h:51
std::set< const Residue * > const_residues_
Definition: ResidueDB.h:222
ResidueIterator beginResidue()
Definition: ResidueDB.h:164
std::set< const Residue * > const_modified_residues_
Definition: ResidueDB.h:226