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

Method IsChildOf

lib/remote/zone.cpp:109–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109bool Zone::IsChildOf(const Zone::Ptr& zone)
110{
111 Zone::Ptr azone = this;
112
113 while (azone) {
114 if (azone == zone)
115 return true;
116
117 azone = azone->GetParent();
118 }
119
120 return false;
121}
122
123bool Zone::IsGlobal() const
124{

Callers 10

SendConfigUpdateMethod · 0.80
ConfigUpdateHandlerMethod · 0.80
UpdateCertificateHandlerFunction · 0.80
CanAccessObjectMethod · 0.80
ExecuteCheckFromQueueMethod · 0.80

Calls 1

GetParentMethod · 0.45

Tested by

no test coverage detected