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

Method CopyTo

lib/base/array.cpp:225–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225void Array::CopyTo(const Array::Ptr& dest) const
226{
227 ObjectLock olock(this);
228 ObjectLock xlock(dest);
229
230 if (dest->m_Frozen)
231 BOOST_THROW_EXCEPTION(std::invalid_argument("Array must not be modified."));
232
233 std::copy(m_Data.begin(), m_Data.end(), std::back_inserter(dest->m_Data));
234}
235
236/**
237 * Makes a shallow copy of an array.

Callers 15

MergeConfigUpdateMethod · 0.45
CreateObjectConfigMethod · 0.45
operator+Method · 0.45
CreateResultMethod · 0.45
EvaluateObjectRuleMethod · 0.45
EvaluateApplyRuleMethod · 0.45
EvaluateObjectRuleMethod · 0.45
EvaluateObjectRuleMethod · 0.45
EvaluateApplyRuleMethod · 0.45
EvaluateApplyRuleMethod · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected