MCPcopy Create free account
hub / github.com/comaps/comaps / GetValuesByKey

Method GetValuesByKey

libs/base/base_tests/mem_trie_test.cpp:42–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 Data GetExpectedContents() const { return {m_data.cbegin(), m_data.cend()}; }
41
42 vector<Value> GetValuesByKey(Key const & key) const
43 {
44 vector<Value> values;
45 m_trie.ForEachInNode(key, [&](Value const & value) { values.push_back(value); });
46 sort(values.begin(), values.end());
47 return values;
48 }
49
50 Data GetContentsByPrefix(Key const & prefix) const
51 {

Callers

nothing calls this directly

Calls 4

ForEachInNodeMethod · 0.45
push_backMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected