MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / setElementIndex

Method setElementIndex

src/openms/source/DATASTRUCTURES/ChargePair.cpp:114–124  ·  view source on GitHub ↗

Set the element index (for element 0 or 1)

Source from the content-addressed store, hash-verified

112
113 /// Set the element index (for element 0 or 1)
114 void ChargePair::setElementIndex(UInt pairID, Size e)
115 {
116 if (pairID == 0)
117 {
118 feature0_index_ = e;
119 }
120 else
121 {
122 feature1_index_ = e;
123 }
124 }
125
126 /// Returns the Id of the compomer that explains the mass difference
127 const Compomer& ChargePair::getCompomer() const

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected