|
OpenMS
2.5.0
|
Go to the documentation of this file.
86 sequence_(element.sequence_),
87 isotopes_(element.isotopes_)
111 isotopes_(nominal_mass)
153 this->sequence_ = sequence;
163 return isotopes_.getNominalMass();
174 return isotopes_.getMass(index);
184 return isotopes_.getAverageMass();
195 return this->getMass() - electrons_number * ELECTRON_MASS_IN_U;
215 this->isotopes_ = isotopes;
isotopes_type::nominal_mass_type nominal_mass_type
Type of distribution nominal mass.
Definition: IMSElement.h:71
IMSElement(const name_type &name, const isotopes_type &isotopes)
Constructor with name and isotope distribution.
Definition: IMSElement.h:91
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
std::string name_type
Type of element's name.
Definition: IMSElement.h:62
const name_type & getName() const
Definition: IMSElement.h:120
const name_type & getSequence() const
Definition: IMSElement.h:141
isotopes_type::mass_type mass_type
Type of isotope mass.
Definition: IMSElement.h:68
name_type name_
Element's name.
Definition: IMSElement.h:249
peaks_container::size_type size_type
Type of peaks container's size.
Definition: IMSIsotopeDistribution.h:132
isotopes_type isotopes_
Element's isotope distribution.
Definition: IMSElement.h:255
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
name_type sequence_
Element's sequence.
Definition: IMSElement.h:252
void setName(const name_type &name)
Definition: IMSElement.h:131
virtual ~IMSElement()
Default destructor.
Definition: IMSElement.h:245
isotopes_type::size_type size_type
Type of isotopes size.
Definition: IMSElement.h:74
const IMSIsotopeDistribution & getIsotopeDistribution() const
Definition: IMSElement.h:203
IMSIsotopeDistribution isotopes_type
Type of element's isotope distribution.
Definition: IMSElement.h:65
nominal_mass_type getNominalMass() const
Definition: IMSElement.h:161
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
Represents a chemical atom with name and isotope distribution.
Definition: IMSElement.h:58
mass_type getAverageMass() const
Definition: IMSElement.h:182
void setIsotopeDistribution(const IMSIsotopeDistribution &isotopes)
Definition: IMSElement.h:213
mass_type getIonMass(int electrons_number=1) const
Definition: IMSElement.h:193
IMSElement()
Empty constructor.
Definition: IMSElement.h:80
std::ostream & operator<<(std::ostream &os, const IMSAlphabet &alphabet)
unsigned int nominal_mass_type
Type of isotope nominal mass.
Definition: IMSIsotopeDistribution.h:98
mass_type getMass(size_type index=0) const
Definition: IMSElement.h:172
IMSElement(const name_type &name, nominal_mass_type nominal_mass=0)
Constructor with name and nominal mass.
Definition: IMSElement.h:107
IMSElement(const name_type &name, mass_type mass)
Constructor with name and mass of single isotope.
Definition: IMSElement.h:99
IMSElement(const IMSElement &element)
Copy constructor.
Definition: IMSElement.h:84
Represents a distribution of isotopes restricted to the first K elements.
Definition: IMSIsotopeDistribution.h:87
void setSequence(const name_type &sequence)
Definition: IMSElement.h:151
static const mass_type ELECTRON_MASS_IN_U
Mass of electron.
Definition: IMSElement.h:77