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

Method getChildOfTypeCount

src/eepp/scene/node.cpp:932–944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

930}
931
932Uint32 Node::getChildOfTypeCount( const Uint32& type ) const {
933 Node* childLoop = mChild;
934 Uint32 count = 0;
935
936 while ( NULL != childLoop ) {
937 if ( childLoop->getType() == type ) {
938 count++;
939 }
940 childLoop = childLoop->mNext;
941 }
942
943 return count;
944}
945
946Node* Node::getChildAt( Uint32 index ) const {
947 Node* child = mChild;

Callers 1

Calls 1

getTypeMethod · 0.45

Tested by 1