| OpenMS 2.5.0

Public Attributes | List of all members
SvmTheoreticalSpectrumGenerator::IonType Struct Reference

nested class More...

`#include <OpenMS/CHEMISTRY/SvmTheoreticalSpectrumGenerator.h>`

## Public Member Functions

Constructors and Destructors
| IonType ()
| IonType (Residue::ResidueType local_residue, EmpiricalFormula local_loss=EmpiricalFormula(), Int local_charge=1)
| IonType (const IonType &rhs)
IonType & | operator= (const IonType &rhs)
bool | operator< (const IonType &rhs) const

## Public Attributes

Residue::ResidueType | residue
EmpiricalFormula | loss
Int | charge

## Detailed Description

nested class

IonType is defined by a ResidueType, a neutral loss and charge state

## Constructor & Destructor Documentation

## ◆ IonType() [1/3]

IonType | ( |  | ) |

inline

## ◆ IonType() [2/3]

IonType | ( | Residue::ResidueType | local_residue,
|  | EmpiricalFormula | local_loss = `EmpiricalFormula()`,
|  | Int | local_charge = `1`
| ) |  |

inline

## ◆ IonType() [3/3]

IonType | ( | const IonType & | rhs | ) |

inline

## Member Function Documentation

## ◆ operator<()

bool operator< | ( | const IonType & | rhs | ) | const

inline

References SvmTheoreticalSpectrumGenerator::IonType::charge, SvmTheoreticalSpectrumGenerator::IonType::loss, SvmTheoreticalSpectrumGenerator::IonType::residue, and EmpiricalFormula::toString().

## ◆ operator=()

IonType& operator= | ( | const IonType & | rhs | ) |

inline

References SvmTheoreticalSpectrumGenerator::IonType::charge, SvmTheoreticalSpectrumGenerator::IonType::loss, and SvmTheoreticalSpectrumGenerator::IonType::residue.

## Member Data Documentation

## ◆ charge

Int charge

Referenced by SvmTheoreticalSpectrumGenerator::IonType::operator<(), and SvmTheoreticalSpectrumGenerator::IonType::operator=().

## ◆ loss

EmpiricalFormula loss

Referenced by SvmTheoreticalSpectrumGenerator::IonType::operator<(), and SvmTheoreticalSpectrumGenerator::IonType::operator=().

## ◆ residue

Residue::ResidueType residue

Referenced by SvmTheoreticalSpectrumGenerator::IonType::operator<(), and SvmTheoreticalSpectrumGenerator::IonType::operator=().