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

Method GetAllTypes

lib/base/type.cpp:97–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97std::vector<Type::Ptr> Type::GetAllTypes()
98{
99 std::vector<Type::Ptr> types;
100
101 Namespace::Ptr typesNS = ScriptGlobal::Get("Types", &Empty);
102
103 if (typesNS) {
104 ObjectLock olock(typesNS);
105
106 for (const Namespace::Pair& kv : typesNS) {
107 Value value = kv.second.Val;
108
109 if (value.IsObjectType<Type>())
110 types.push_back(value);
111 }
112 }
113
114 return types;
115}
116
117const std::vector<Type::Ptr>& Type::GetConfigTypesSortedByLoadDependencies()
118{

Callers

nothing calls this directly

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected