MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / push

Method push

extlibs/vili/src/node.cpp:463–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461 }
462
463 void node::push(const node& value)
464 {
465 if (is<array>())
466 {
467 std::get<array>(m_data).push_back(value);
468 }
469 else
470 {
471 throw exceptions::invalid_cast(array_type, to_string(type()), VILI_EXC_INFO);
472 }
473 }
474
475 void node::insert(size_t index, const node& value)
476 {

Callers 12

mergeMethod · 0.95
luaTableToViliArrayFunction · 0.45
dumpMethod · 0.45
CapturerMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45

Calls 4

invalid_castClass · 0.85
to_stringFunction · 0.70
typeEnum · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected