35 #ifndef OPENMS_DATASTRUCTURES_COMPOMER_H 36 #define OPENMS_DATASTRUCTURES_COMPOMER_H 40 #include <OpenMS/OpenMSConfig.h> 63 enum SIDE {LEFT, RIGHT, BOTH};
72 Compomer(
Int net_charge,
double mass,
double log_p);
89 bool isConflicting(
const Compomer& cmp,
UInt side_this,
UInt side_other)
const;
92 void setID(
const Size&
id);
94 const Size& getID()
const;
96 const CompomerComponents& getComponent()
const;
99 const Int& getNetCharge()
const;
102 const double& getMass()
const;
105 const Int& getPositiveCharges()
const;
108 const Int& getNegativeCharges()
const;
111 const double& getLogP()
const;
114 const double& getRTShift()
const;
117 String getAdductsAsString()
const;
124 bool isSingleAdduct(
Adduct& a,
const UInt side)
const;
152 void add(
const CompomerSide& add_side,
UInt side);
178 #endif //OPENMS_DATASTRUCTURES_COMPOMER_H CompomerComponents cmp_
Definition: Compomer.h:165
Int neg_charges_
Definition: Compomer.h:169
A more convenient string class.
Definition: String.h:57
unsigned int UInt
Unsigned integer type.
Definition: Types.h:95
std::vector< CompomerSide > CompomerComponents
adducts and their abundance etc
Definition: Compomer.h:66
Holds information on an edge connecting two features from a (putative) charge ladder.
Definition: Compomer.h:59
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
Int net_charge_
Definition: Compomer.h:166
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
double rt_shift_
Definition: Compomer.h:171
bool operator<(const MultiplexDeltaMasses &dm1, const MultiplexDeltaMasses &dm2)
std::map< String, Adduct > CompomerSide
Definition: Compomer.h:65
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
Size id_
Definition: Compomer.h:172
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:74
SIDE
side of compomer (LEFT ^ subtract; RIGHT ^ add)
Definition: Compomer.h:63
double mass_
Definition: Compomer.h:167
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:128
Int pos_charges_
Definition: Compomer.h:168
double log_p_
Definition: Compomer.h:170
int Int
Signed integer type.
Definition: Types.h:103