MCPcopy Create free account
hub / github.com/Icinga/icinga2 / HasChildren

Method HasChildren

lib/icinga/dependency-group.cpp:109–113  ·  view source on GitHub ↗

* Check if the current dependency has any children. * * @return bool - Returns true if the current dependency group has children, otherwise false. */

Source from the content-addressed store, hash-verified

107 * @return bool - Returns true if the current dependency group has children, otherwise false.
108 */
109bool DependencyGroup::HasChildren() const
110{
111 std::lock_guard lock(m_Mutex);
112 return std::any_of(m_Members.begin(), m_Members.end(), [](const auto& pair) { return !pair.second.empty(); });
113}
114
115/**
116 * Retrieve all dependency objects of the current dependency group the provided child Checkable depend on.

Callers 1

UnregisterMethod · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected