81 const std::map<std::string, const Element*>&
getNames()
const;
84 const std::map<std::string, const Element*>&
getSymbols()
const;
120 double calculateAvgWeight_(
const std::map<unsigned int, double>& abundance,
const std::map<unsigned int, double>& mass);
130 void buildElement_(
const std::string& name,
const std::string& symbol,
const unsigned int an,
const std::map<unsigned int, double>& abundance,
const std::map<unsigned int, double>& mass);
136 void storeIsotopes_(
const std::string& name,
const std::string& symbol,
const unsigned int an,
const std::map<unsigned int, double>& Z_to_mass,
const IsotopeDistribution& isotopes);
142 std::map<std::string, const Element*>
names_;
Singleton that stores elements.
Definition: ElementDB.h:70
double calculateMonoWeight_(const std::map< unsigned int, double > &Z_to_mass)
const std::map< std::string, const Element * > & getSymbols() const
returns a hashmap that contains symbols mapped to pointers to the elements
std::map< unsigned int, const Element * > atomic_numbers_
Definition: ElementDB.h:146
IsotopeDistribution parseIsotopeDistribution_(const std::map< unsigned int, double > &abundance, const std::map< unsigned int, double > &mass)
void addElementToMaps_(const std::string &name, const std::string &symbol, const unsigned int an, const Element *e)
ElementDB(const ElementDB &&db)=delete
const Element * getElement(unsigned int atomic_number) const
returns a pointer to the element of atomic number; if no element is found 0 is returned
void buildElement_(const std::string &name, const std::string &symbol, const unsigned int an, const std::map< unsigned int, double > &abundance, const std::map< unsigned int, double > &mass)
ElementDB & operator=(const ElementDB &db)=delete
const std::map< std::string, const Element * > & getNames() const
returns a hashmap that contains names mapped to pointers to the elements
ElementDB(const ElementDB &db)=delete
bool hasElement(unsigned int atomic_number) const
returns true if the db contains an element with the given atomic_number
const std::map< unsigned int, const Element * > & getAtomicNumbers() const
returns a hashmap that contains atomic numbers mapped to pointers of the elements
std::map< std::string, const Element * > symbols_
Definition: ElementDB.h:144
std::map< std::string, const Element * > names_
Definition: ElementDB.h:142
const Element * getElement(const std::string &name) const
bool hasElement(const std::string &name) const
returns true if the db contains an element with the given name
double calculateAvgWeight_(const std::map< unsigned int, double > &abundance, const std::map< unsigned int, double > &mass)
static const ElementDB * getInstance()
void storeIsotopes_(const std::string &name, const std::string &symbol, const unsigned int an, const std::map< unsigned int, double > &Z_to_mass, const IsotopeDistribution &isotopes)
Representation of an element.
Definition: Element.h:56
Definition: IsotopeDistribution.h:65
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47