MCPcopy Create free account
hub / github.com/KDAB/GammaRay / depth

Method depth

core/bindingnode.cpp:135–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133
134
135uint BindingNode::depth() const
136{
137 uint depth = 0;
138 if (m_foundBindingLoop) {
139 return std::numeric_limits<uint>::max(); // to be considered as infinity.
140 }
141 for (const auto &dependency : m_dependencies) {
142 uint depDepth = dependency->depth();
143 if (depDepth == std::numeric_limits<uint>::max()) {
144 depth = depDepth;
145 break;
146 } else if (depDepth + 1 > depth) {
147 depth = depDepth + 1;
148 }
149 }
150 return depth;
151}

Callers 2

refreshMethod · 0.45
dataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected