35 #ifndef OPENMS_DATASTRUCTURES_ADDUCT_H 36 #define OPENMS_DATASTRUCTURES_ADDUCT_H 38 #include <OpenMS/OpenMSConfig.h> 58 Adduct(
Int charge,
Int amount,
double singleMass,
String formula,
double log_prob,
double rt_shift,
const String label =
"");
65 void operator+=(
const Adduct& rhs);
69 friend OPENMS_DLLAPI std::ostream&
operator<<(std::ostream& os,
const Adduct& a);
75 const Int& getCharge()
const;
77 void setCharge(
const Int& charge);
79 const Int& getAmount()
const;
80 void setAmount(
const Int& amount);
82 const double& getSingleMass()
const;
83 void setSingleMass(
const double& singleMass);
85 const double& getLogProb()
const;
86 void setLogProb(
const double& log_prob);
88 const String& getFormula()
const;
89 void setFormula(
const String& formula);
91 const double& getRTShift()
const;
92 const String& getLabel()
const;
A more convenient string class.
Definition: String.h:57
double log_prob_
Definition: Adduct.h:99
Int charge_
Definition: Adduct.h:96
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
String label_
Definition: Adduct.h:102
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
std::vector< Adduct > AdductsType
Definition: Adduct.h:49
Int amount_
Definition: Adduct.h:97
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
DPosition< D, TCoordinateType > operator*(DPosition< D, TCoordinateType > position, typename DPosition< D, TCoordinateType >::CoordinateType scalar)
Scalar multiplication (a bit inefficient)
Definition: DPosition.h:421
String formula_
Definition: Adduct.h:100
double singleMass_
Definition: Adduct.h:98
double rt_shift_
Definition: Adduct.h:101
int Int
Signed integer type.
Definition: Types.h:103