39 #include <OpenMS/OpenMSConfig.h>
72 const double& mass_diff,
88 Int getCharge(
UInt pairID)
const;
Representation of a (putative) link between two Features, which stem from the same compound but have ...
Definition: ChargePair.h:58
const Compomer & getCompomer() const
Returns the Id of the compomer that explains the mass difference.
double mass_diff_
mass difference (after explanation by compomer)
Definition: ChargePair.h:144
virtual bool operator==(const ChargePair &i) const
Equality operator.
bool isActive() const
is this pair realized?
void setCompomer(const Compomer &compomer)
Set the compomer id.
void setMassDiff(double mass_diff)
Sets the mass difference.
double getMassDiff() const
Returns the mass difference.
ChargePair(const ChargePair &rhs)
Copy constructor.
virtual ~ChargePair()=default
Destructor.
Size getElementIndex(UInt pairID) const
Returns the element index (for element 0 or 1)
Size feature1_index_
Int of the second element within the FeatureMap.
Definition: ChargePair.h:136
bool is_active_
was this pair realized by ILP?
Definition: ChargePair.h:148
Size feature0_index_
Int of the first element within the FeatureMap.
Definition: ChargePair.h:134
void setActive(const bool active)
Compomer compomer_
Compomer that explains the mass difference.
Definition: ChargePair.h:142
ChargePair & operator=(const ChargePair &rhs)
Assignment operator.
ChargePair(const Size &index0, const Size &index1, const Int &charge0, const Int &charge1, const Compomer &compomer, const double &mass_diff, const bool active)
Constructor from map index, element index and Feature.
void setCharge(UInt pairID, Int e)
Set the charge (for element 0 or 1)
virtual bool operator!=(const ChargePair &i) const
Equality operator.
void setElementIndex(UInt pairID, Size e)
Set the element index (for element 0 or 1)
Int feature0_charge_
Assumed charge of the first feature.
Definition: ChargePair.h:138
double getEdgeScore() const
Returns the ILP edge score.
void setEdgeScore(double score)
Sets the ILP edge score.
Int feature1_charge_
Assumed charge of the second feature.
Definition: ChargePair.h:140
double score_
Score of this edge used in ILP.
Definition: ChargePair.h:146
Holds information on an edge connecting two features from a (putative) charge ladder.
Definition: Compomer.h:59
int Int
Signed integer type.
Definition: Types.h:102
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)