44 #define OPENMS_CHEMISTRY_ELEMENT_NAME_DEFAULT "unknown"
45 #define OPENMS_CHEMISTRY_ELEMENT_SYMBOL_DEFAULT "??"
46 #define OPENMS_CHEMISTRY_ELEMENT_WEIGHT_DEFAULT 0.0
47 #define OPENMS_CHEMISTRY_ELEMENT_ATOMICNUMBER_DEFAULT 0
71 const std::string & symbol,
72 unsigned int atomic_number,
73 double average_weight,
Representation of an element.
Definition: Element.h:56
virtual ~Element()
destructor
bool operator==(const Element &element) const
equality operator
double getMonoWeight() const
returns the mono isotopic weight of the element
friend std::ostream & operator<<(std::ostream &os, const Element &element)
writes the element to an output stream
bool operator<(const Element &element) const
less operator
bool operator!=(const Element &element) const
inequality operator
std::string name_
name of the element
Definition: Element.h:147
const std::string & getSymbol() const
returns symbol of the element
Element(const std::string &name, const std::string &symbol, unsigned int atomic_number, double average_weight, double mono_weight, const IsotopeDistribution &isotopes)
detailed constructor
IsotopeDistribution isotopes_
distribution of the isotopes
Definition: Element.h:162
unsigned int getAtomicNumber() const
returns the unique atomic number
const std::string & getName() const
returns the name of the element
unsigned int atomic_number_
atomic number of the element
Definition: Element.h:153
double getAverageWeight() const
returns the average weight of the element
const IsotopeDistribution & getIsotopeDistribution() const
returns the isotope distribution of the element
void setName(const std::string &name)
set the name of the element
double average_weight_
average weight over all isotopes
Definition: Element.h:156
Element & operator=(const Element &element)
assignment operator
Element()
default constructor
void setAverageWeight(double weight)
sets the average weight of the element
Element(const Element &element)
copy constructor
void setSymbol(const std::string &symbol)
sets symbol of the element
void setAtomicNumber(unsigned int atomic_number)
sets unique atomic number
double mono_weight_
mono isotopic weight of the most frequent isotope
Definition: Element.h:159
std::string symbol_
symbol of the element
Definition: Element.h:150
void setIsotopeDistribution(const IsotopeDistribution &isotopes)
sets the isotope distribution of the element
void setMonoWeight(double weight)
sets the mono isotopic weight of the element
Definition: IsotopeDistribution.h:65
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)