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

Method GetServices

lib/icinga/host.cpp:86–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86std::vector<Service::Ptr> Host::GetServices() const
87{
88 std::unique_lock<std::mutex> lock(m_ServicesMutex);
89
90 std::vector<Service::Ptr> services;
91 services.reserve(m_Services.size());
92 for (auto& kv : m_Services) {
93 services.push_back(kv.second);
94 }
95
96 return services;
97}
98
99void Host::AddService(const Service::Ptr& service)
100{

Calls 2

push_backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected