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.
| IMSElement | ( | ) | [inline] |
Empty constructor.
| IMSElement | ( | const IMSElement & | element | ) | [inline] |
Copy constructor.
| IMSElement | ( | const name_type & | name, | |
| const isotopes_type & | isotopes | |||
| ) | [inline] |
Constructor with name and isotope distribution.
| IMSElement | ( | const name_type & | name, | |
| mass_type | mass | |||
| ) | [inline] |
Constructor with name and mass of single isotope.
| IMSElement | ( | const name_type & | name, | |
| nominal_mass_type | nominal_mass = 0 | |||
| ) | [inline] |
Constructor with name and nominal mass.
| virtual ~IMSElement | ( | ) | [inline, virtual] |
Default destructor.
| mass_type getAverageMass | ( | ) | const [inline] |
Gets element's average mass.
| 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.
| electrons_number | Number of electrons lacking in ion. |
| const IMSIsotopeDistribution& getIsotopeDistribution | ( | ) | const [inline] |
Gets element's isotope distribution.
Gets mass of element's isotope index.
| index | Index of element's isotope. |
Referenced by IMSAlphabet::MassSortingCriteria_::operator()().
| const name_type& getName | ( | ) | const [inline] |
Gets element's name.
| nominal_mass_type getNominalMass | ( | ) | const [inline] |
Gets element's nominal mass.
| const name_type& getSequence | ( | ) | const [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.
| 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.
| void setIsotopeDistribution | ( | const IMSIsotopeDistribution & | isotopes | ) | [inline] |
Sets element's isotope distribution.
| isotopes | A new isotope distribution to be set for element. |
| void setName | ( | const name_type & | name | ) | [inline] |
Sets element's name.
| name | A new name to be set for element. |
| void setSequence | ( | const name_type & | sequence | ) | [inline] |
Sets element's sequence.
| sequence | A new sequence to be set for element. |
const mass_type ELECTRON_MASS_IN_U [static] |
Mass of electron.
isotopes_type isotopes_ [private] |
Element's isotope distribution.
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:59 using doxygen 1.7.1 |