![]() |
OpenMS
|
Represents a chemical atom with name and isotope distribution. More...
#include <OpenMS/CHEMISTRY/MASSDECOMPOSITION/IMS/IMSElement.h>
Public Types | |
| typedef std::string | name_type |
| Type of element's name. | |
| typedef IMSIsotopeDistribution | isotopes_type |
| Type of element's isotope distribution. | |
| typedef isotopes_type::mass_type | mass_type |
| Type of isotope mass. | |
| typedef isotopes_type::nominal_mass_type | nominal_mass_type |
| Type of distribution nominal mass. | |
| typedef isotopes_type::size_type | size_type |
| Type of isotopes size. | |
Public Member Functions | |
| IMSElement () | |
| Empty constructor. | |
| IMSElement (const IMSElement &element) | |
| Copy constructor. | |
| IMSElement (const name_type &name, const isotopes_type &isotopes) | |
| Constructor with name and isotope distribution. | |
| IMSElement (const name_type &name, mass_type mass) | |
| Constructor with name and mass of single isotope. | |
| IMSElement (const name_type &name, nominal_mass_type nominal_mass=0) | |
| Constructor with name and nominal mass. | |
| const name_type & | getName () const |
| void | setName (const name_type &name) |
| const name_type & | getSequence () const |
| void | setSequence (const name_type &sequence) |
| nominal_mass_type | getNominalMass () const |
| mass_type | getMass (size_type index=0) const |
| mass_type | getAverageMass () const |
| mass_type | getIonMass (int electrons_number=1) const |
| const IMSIsotopeDistribution & | getIsotopeDistribution () const |
| void | setIsotopeDistribution (const IMSIsotopeDistribution &isotopes) |
| IMSElement & | operator= (const IMSElement &element) |
| bool | operator== (const IMSElement &element) const |
| bool | operator!= (const IMSElement &element) const |
| virtual | ~IMSElement () |
| Default destructor. | |
Static Public Attributes | |
| static const mass_type | ELECTRON_MASS_IN_U |
| Mass of electron. | |
Private Attributes | |
| name_type | name_ |
| Element's name. | |
| name_type | sequence_ |
| Element's sequence. | |
| isotopes_type | isotopes_ |
| Element's isotope distribution. | |
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.
| typedef IMSIsotopeDistribution isotopes_type |
Type of element's isotope distribution.
| typedef isotopes_type::mass_type mass_type |
Type of isotope mass.
| typedef std::string name_type |
Type of element's name.
Type of distribution nominal mass.
| typedef isotopes_type::size_type size_type |
Type of isotopes size.
|
inline |
Empty constructor.
|
inline |
Copy constructor.
|
inline |
Constructor with name and isotope distribution.
|
inline |
Constructor with name and mass of single isotope.
|
inline |
Constructor with name and nominal mass.
|
inlinevirtual |
Default destructor.
|
inline |
Gets element's average mass.
|
inline |
Gets ion mass of element. By default ion lacks 1 electron, but this can be changed by setting other electrons_number.
| [in] | electrons_number | Number of electrons lacking in ion. |
|
inline |
Gets element's isotope distribution.
Gets mass of element's isotope index.
| [in] | index | Index of element's isotope. |
Referenced by IMSAlphabet::MassSortingCriteria_::operator()().
|
inline |
Gets element's name.
|
inline |
Gets element's nominal mass.
|
inline |
Gets element's sequence.
| bool operator!= | ( | const IMSElement & | element | ) | const |
Inequality operator. Returns true, if a given element is unequal to this one, false - otherwise.
| IMSElement & operator= | ( | const IMSElement & | element | ) |
Assignment operator.
| [in] | element | Element to be assigned to this one. |
| bool operator== | ( | const IMSElement & | element | ) | const |
Equality operator. Returns true, if a given element is equal to this one, false - otherwise.
|
inline |
Sets element's isotope distribution.
| [in] | isotopes | A new isotope distribution to be set for element. |
|
inline |
Sets element's name.
| [in] | name | A new name to be set for element. |
|
inline |
Sets element's sequence.
| [in] | sequence | A new sequence to be set for element. |
|
static |
Mass of electron.
|
private |
Element's isotope distribution.