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

Function updateAddressLookup_

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

Source from the content-addressed store, hash-verified

48 /// Recreate the address look-up table for a container
49 template <typename ContainerType>
50 static void updateAddressLookup_(const ContainerType& container,
51 IdentificationData::AddressLookup& lookup)
52 {
53 lookup.clear();
54 lookup.reserve(container.size());
55 for (const auto& element : container)
56 {
57 lookup.insert(uintptr_t(&element));
58 }
59 }
60
61 /// Helper function to add a meta value to an element in a multi-index container
62 template <typename RefType, typename ContainerType>

Callers 1

cleanupMethod · 0.85

Calls 4

clearMethod · 0.45
reserveMethod · 0.45
sizeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected