17 #define OPENMS_CHEMISTRY_ELEMENT_NAME_DEFAULT "unknown" 
   18 #define OPENMS_CHEMISTRY_ELEMENT_SYMBOL_DEFAULT "??" 
   19 #define OPENMS_CHEMISTRY_ELEMENT_WEIGHT_DEFAULT 0.0 
   20 #define OPENMS_CHEMISTRY_ELEMENT_ATOMICNUMBER_DEFAULT 0 
   47             const std::string & symbol,
 
   48             unsigned int atomic_number,
 
   49             double average_weight,
 
Representation of an element.
Definition: Element.h:32
 
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:123
 
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 (mass and natural frequency)
Definition: Element.h:138
 
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:129
 
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:132
 
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:135
 
std::string symbol_
symbol of the element
Definition: Element.h:126
 
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:39
 
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
 
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)