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

Method DependencyGroup

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

Source from the content-addressed store, hash-verified

75}
76
77DependencyGroup::DependencyGroup(String name, const std::set<Dependency::Ptr>& dependencies)
78 : m_RedundancyGroupName(std::move(name))
79{
80 for (const auto& dependency : dependencies) {
81 m_Members[MakeCompositeKeyFor(dependency)].emplace(dependency->GetChild().get(), dependency.get());
82 }
83}
84
85/**
86 * Create a composite key for the provided dependency.

Callers

nothing calls this directly

Calls 3

emplaceMethod · 0.80
getMethod · 0.45
GetChildMethod · 0.45

Tested by

no test coverage detected