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

Function DictionaryValues

lib/base/dictionary-script.cpp:82–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82static Array::Ptr DictionaryValues()
83{
84 ScriptFrame *vframe = ScriptFrame::GetCurrentFrame();
85 Dictionary::Ptr self = static_cast<Dictionary::Ptr>(vframe->Self);
86 REQUIRE_NOT_NULL(self);
87
88 ArrayData values;
89 ObjectLock olock(self);
90 for (const Dictionary::Pair& kv : self) {
91 values.push_back(kv.second);
92 }
93 return new Array(std::move(values));
94}
95
96static void DictionaryFreeze()
97{

Callers

nothing calls this directly

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected