MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / getNodePath

Method getNodePath

src/Core/Bindings/BindingTree.cpp:43–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42
43 std::string BindingTree::getNodePath() const
44 {
45 std::vector<std::string> parentChain;
46 BindingTree* currentParent = m_parent;
47 if (currentParent != nullptr)
48 {
49 while (currentParent != nullptr)
50 {
51 parentChain.push_back(currentParent->getId());
52 currentParent = currentParent->m_parent;
53 }
54 parentChain.pop_back();
55 reverse(parentChain.begin(), parentChain.end());
56 parentChain.push_back(m_id);
57 std::string retPath = Utils::Vector::join(parentChain, ".");
58 return retPath;
59 }
60 else
61 {
62 return m_id;
63 }
64 }
65
66 BindingTree& BindingTree::operator[](const std::string& id)
67 {

Callers 2

operator()Method · 0.95
BindingTree.cppFile · 0.80

Calls 6

getIdMethod · 0.80
reverseFunction · 0.50
joinFunction · 0.50
push_backMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected