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

Method Set

lib/base/array.cpp:50–58  ·  view source on GitHub ↗

* Sets a value in the array. * * @param index The index. * @param value The value. */

Source from the content-addressed store, hash-verified

48 * @param value The value.
49 */
50void Array::Set(SizeType index, const Value& value)
51{
52 ObjectLock olock(this);
53
54 if (m_Frozen)
55 BOOST_THROW_EXCEPTION(std::invalid_argument("Value in array must not be modified."));
56
57 m_Data.at(index) = value;
58}
59
60/**
61 * Sets a value in the array.

Callers 15

StatsFuncMethod · 0.45
StatsFuncMethod · 0.45
StatsFuncMethod · 0.45
HandleRequestMethod · 0.45
HandleRequestMethod · 0.45
SyncLocalZoneDirMethod · 0.45
SendConfigUpdateMethod · 0.45
ConfigGlobHandlerMethod · 0.45
EvaluateFilterMethod · 0.45
GetFilterTargetsMethod · 0.45
HandleRequestMethod · 0.45
HandleRequestMethod · 0.45

Calls 1

SwapMethod · 0.80

Tested by

no test coverage detected