MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / removeAllChildren

Method removeAllChildren

Source/Node/Node.cpp:567–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

565}
566
567void Node::removeAllChildren(bool cleanup) {
568 ARRAY_START(Node, child, _children) {
569 if (_flags.isOn(Node::Running)) {
570 child->onExit();
571 }
572 if (cleanup) {
573 child->cleanup();
574 } else {
575 child->_flags.setOn(Node::InWaitingList);
576 SharedDirector.addToWaitingList(child);
577 }
578 child->_parent = nullptr;
579 }
580 ARRAY_END
581 if (_children) {
582 _children->clear();
583 }
584}
585
586void Node::removeFromParent(bool cleanup) {
587 if (_parent) {

Callers 5

setButtonsFunction · 0.80
advanceFunction · 0.80
generateClipsFunction · 0.80
cleanupMethod · 0.80
node_remove_all_childrenFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected