41 namespace IdentificationDataInternal
61 Size end_pos = UNKNOWN_POSITION,
62 String left_neighbor = UNKNOWN_NEIGHBOR,
63 String right_neighbor = UNKNOWN_NEIGHBOR):
64 start_pos(start_pos), end_pos(end_pos), left_neighbor(left_neighbor),
65 right_neighbor(right_neighbor)
72 return (std::tie(start_pos, end_pos) <
79 return (std::tie(start_pos, end_pos) ==
85 if ((start_pos == UNKNOWN_POSITION) || (end_pos == UNKNOWN_POSITION))
89 if (end_pos < start_pos)
return false;
90 if (molecule_length && (end_pos - start_pos + 1 != molecule_length))
94 if (parent_length && (end_pos >= parent_length))
return false;
String right_neighbor
Definition: MoleculeParentMatch.h:53
bool operator<(const MoleculeParentMatch &other) const
Definition: MoleculeParentMatch.h:69
bool operator==(const MoleculeParentMatch &other) const
Definition: MoleculeParentMatch.h:76
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
static constexpr char LEFT_TERMINUS
Definition: MoleculeParentMatch.h:57
bool hasValidPositions(Size molecule_length=0, Size parent_length=0) const
Definition: MoleculeParentMatch.h:83
static constexpr char UNKNOWN_NEIGHBOR
Definition: MoleculeParentMatch.h:56
static constexpr Size UNKNOWN_POSITION
Definition: MoleculeParentMatch.h:55
static constexpr char RIGHT_TERMINUS
Definition: MoleculeParentMatch.h:58
Size start_pos
Definition: MoleculeParentMatch.h:50
Size end_pos
Definition: MoleculeParentMatch.h:50
Interface for classes that can store arbitrary meta information (Type-Name-Value tuples).
Definition: MetaInfoInterface.h:60
std::map< ParentMoleculeRef, std::set< MoleculeParentMatch > > ParentMatches
mapping: parent molecule -> match information
Definition: MoleculeParentMatch.h:101
String left_neighbor
Definition: MoleculeParentMatch.h:53
MoleculeParentMatch(Size start_pos=UNKNOWN_POSITION, Size end_pos=UNKNOWN_POSITION, String left_neighbor=UNKNOWN_NEIGHBOR, String right_neighbor=UNKNOWN_NEIGHBOR)
Definition: MoleculeParentMatch.h:60
Meta data for the association between an identified molecule (e.g. peptide) and a parent molecule (e...
Definition: MoleculeParentMatch.h:45
A more convenient string class.
Definition: String.h:58
IteratorWrapper< ParentMolecules::iterator > ParentMoleculeRef
Definition: ParentMolecule.h:100
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46