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

Method GetKeys

lib/base/dictionary.cpp:256–267  ·  view source on GitHub ↗

* Returns an ordered vector containing all keys * which are currently set in this directory. * * @returns an ordered vector of key names */

Source from the content-addressed store, hash-verified

254 * @returns an ordered vector of key names
255 */
256std::vector<String> Dictionary::GetKeys() const
257{
258 std::shared_lock<std::shared_timed_mutex> lock (m_DataMutex);
259
260 std::vector<String> keys;
261
262 for (const Dictionary::Pair& kv : m_Data) {
263 keys.push_back(kv.first);
264 }
265
266 return keys;
267}
268
269String Dictionary::ToString() const
270{

Callers 8

EvaluateApplyRuleMethod · 0.80
EvaluateApplyRuleMethod · 0.80
EvaluateApplyRuleMethod · 0.80
EvaluateApplyRuleMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected