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

Method erase

extlibs/vili/src/node.cpp:548–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546 }
547
548 void node::erase(size_t index)
549 {
550 if (is<array>())
551 {
552 auto& vector = std::get<array>(m_data);
553 if (index < vector.size())
554 {
555 vector.erase(vector.cbegin() + index);
556 }
557 else
558 {
559 throw exceptions::array_index_overflow(
560 index, vector.size(), VILI_EXC_INFO);
561 }
562 }
563 else
564 {
565 throw exceptions::invalid_cast(array_type, to_string(type()), VILI_EXC_INFO);
566 }
567 }
568
569 void node::erase(size_t begin, size_t end)
570 {

Callers 15

UnmountMethod · 0.45
fromHexMethod · 0.45
removeMethod · 0.45
createGamepadMapMethod · 0.45
createTriggerGroupsMethod · 0.45
updateMethod · 0.45
InputManager.cppFile · 0.45
removeTagMethod · 0.45
removeTrajectoryMethod · 0.45
clearMethod · 0.45
updateMethod · 0.45
removeGameObjectMethod · 0.45

Calls 9

invalid_castClass · 0.85
unknown_child_nodeClass · 0.85
to_stringFunction · 0.70
typeEnum · 0.50
sizeMethod · 0.45
cbeginMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected