| 930 | } |
| 931 | |
| 932 | Uint32 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 | |
| 946 | Node* Node::getChildAt( Uint32 index ) const { |
| 947 | Node* child = mChild; |