Represents a chemical atom with name and isotope distribution.
More...
#include <OpenMS/CHEMISTRY/MASSDECOMPOSITION/IMS/IMSElement.h>
Represents a chemical atom with name and isotope distribution.
Simulates a chemical atom with name and isotope distribution and can be used as a base class for more complex structures that simulate non-trivial bio-chemical molecules. Element 's name represents the atom's symbol in a periodical table. Sequence is by default equal to name and introduced for more complex molecules.
- Author
- Anton Pervukhin Anton.nosp@m..Per.nosp@m.vukhi.nosp@m.n@Ce.nosp@m.BiTec.nosp@m..Uni.nosp@m.-Biel.nosp@m.efel.nosp@m.d.DE
◆ isotopes_type
Type of element's isotope distribution.
◆ mass_type
◆ name_type
◆ nominal_mass_type
Type of distribution nominal mass.
◆ size_type
◆ IMSElement() [1/5]
◆ IMSElement() [2/5]
◆ IMSElement() [3/5]
Constructor with name and isotope distribution.
◆ IMSElement() [4/5]
Constructor with name and mass of single isotope.
◆ IMSElement() [5/5]
Constructor with name and nominal mass.
◆ ~IMSElement()
◆ getAverageMass()
Gets element's average mass.
- Returns
- An average mass of element.
◆ getIonMass()
| mass_type getIonMass |
( |
int |
electrons_number = 1 | ) |
const |
|
inline |
Gets ion mass of element. By default ion lacks 1 electron, but this can be changed by setting other electrons_number.
- Parameters
-
| [in] | electrons_number | Number of electrons lacking in ion. |
◆ getIsotopeDistribution()
Gets element's isotope distribution.
- Returns
- Element's isotope distribution.
◆ getMass()
◆ getName()
Gets element's name.
- Note
- Name represents a symbol of element/atom in a periodical table.
- Returns
- Name of element.
◆ getNominalMass()
Gets element's nominal mass.
- Returns
- A nominal mass of element.
◆ getSequence()
Gets element's sequence.
- Returns
- Sequence of element.
◆ operator!=()
| bool operator!= |
( |
const IMSElement & |
element | ) |
const |
Inequality operator. Returns true, if a given element is unequal to this one, false - otherwise.
- Returns
- true, if a given element is unequal to this one, false - otherwise.
◆ operator=()
Assignment operator.
- Parameters
-
| [in] | element | Element to be assigned to this one. |
- Returns
- Reference to this object.
◆ operator==()
| bool operator== |
( |
const IMSElement & |
element | ) |
const |
Equality operator. Returns true, if a given element is equal to this one, false - otherwise.
- Returns
- true, if a given element is equal to this one, false - otherwise
◆ setIsotopeDistribution()
Sets element's isotope distribution.
- Parameters
-
| [in] | isotopes | A new isotope distribution to be set for element. |
◆ setName()
Sets element's name.
- Note
- Name represents a symbol of element/atom in a periodical table.
- Parameters
-
| [in] | name | A new name to be set for element. |
◆ setSequence()
| void setSequence |
( |
const name_type & |
sequence | ) |
|
|
inline |
Sets element's sequence.
- Parameters
-
| [in] | sequence | A new sequence to be set for element. |
◆ ELECTRON_MASS_IN_U
◆ isotopes_
◆ name_
◆ sequence_