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

Function isValidReference_

src/openms/source/METADATA/ID/IdentificationData.cpp:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 /// Check whether a reference points to an element in a container
19 template <typename RefType, typename ContainerType>
20 static bool isValidReference_(RefType ref, ContainerType& container)
21 {
22 for (auto it = container.begin(); it != container.end(); ++it)
23 {
24 if (ref == it) return true;
25 }
26 return false;
27 }
28
29 /// Check validity of a reference based on a look-up table of addresses
30 template <typename RefType>

Callers 10

setMetaValue_Function · 0.85
checkScoreTypes_Method · 0.85
registerObservationMethod · 0.85
addScoreMethod · 0.85
removeMetaValueMethod · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected