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

Method Clear

lib/base/dictionary.cpp:195–204  ·  view source on GitHub ↗

* Removes all dictionary items. */

Source from the content-addressed store, hash-verified

193 * Removes all dictionary items.
194 */
195void Dictionary::Clear()
196{
197 ObjectLock olock(this);
198 std::unique_lock<std::shared_timed_mutex> lock (m_DataMutex);
199
200 if (m_Frozen)
201 BOOST_THROW_EXCEPTION(std::invalid_argument("Dictionary must not be modified."));
202
203 m_Data.clear();
204}
205
206void Dictionary::CopyTo(const Dictionary::Ptr& dest) const
207{

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected