MCPcopy Create free account
hub / github.com/SpartanJ/eepp / inNodeTree

Method inNodeTree

src/eepp/scene/node.cpp:856–869  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

854}
855
856bool Node::inNodeTree( Node* node ) const {
857 if ( this == node ) {
858 return true;
859 } else {
860 Node* child = mChild;
861 while ( NULL != child ) {
862 if ( child->inNodeTree( node ) )
863 return true;
864 child = child->mNext;
865 }
866 }
867
868 return false;
869}
870
871bool Node::isChild( Node* child ) const {
872 Node* childLoop = mChild;

Callers 1

createMethod · 0.80

Calls

no outgoing calls

Tested by 1

createMethod · 0.64