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

Function GetRoot

libs/indexer/complex/tree_node.hpp:166–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164
165template <typename Data>
166decltype(auto) GetRoot(types::Ptr<Data> node)
167{
168 while (node->HasParent())
169 node = node->GetParent();
170 return node;
171}
172
173template <typename Data>
174decltype(auto) GetPathToRoot(types::Ptr<Data> node)

Callers 7

ForEachTreeMethod · 0.85
GetTypeByPathImplMethod · 0.85
UNIT_TESTFunction · 0.85
AppendMethod · 0.85
UnionMethod · 0.85
ClusteringMapClass · 0.85
ForEachClusterMethod · 0.85

Calls 2

HasParentMethod · 0.45
GetParentMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.68