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

Method removeChild

src/Core/Scene/SceneNode.cpp:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 }
12
13 void SceneNode::removeChild(Movable& child)
14 {
15 const auto childToRemove
16 = std::remove(m_children.begin(), m_children.end(), &child);
17 if (childToRemove == m_children.end())
18 throw Exceptions::ChildNotInSceneNode(this, &child, EXC_INFO);
19 m_children.erase(childToRemove, m_children.end());
20 }
21
22 void SceneNode::setPosition(const Transform::UnitVector& position)
23 {

Callers

nothing calls this directly

Calls 5

removeFunction · 0.85
ChildNotInSceneNodeClass · 0.85
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected