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

Method GetChildren

lib/icinga/checkable-dependency.cpp:232–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232std::set<Checkable::Ptr> Checkable::GetChildren() const
233{
234 std::set<Checkable::Ptr> parents;
235
236 for (const Dependency::Ptr& dep : GetReverseDependencies()) {
237 Checkable::Ptr service = dep->GetChild();
238
239 if (service && service.get() != this)
240 parents.insert(service);
241 }
242
243 return parents;
244}
245
246/**
247 * Retrieve the total number of all the children of the current Checkable.

Callers

nothing calls this directly

Calls 3

GetChildMethod · 0.45
getMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected