Group::GetChild

Background

This method looks up a child node through multiple levels of a hierarchy. Each element in the specified index array indicates the child list index of successive depths in the hierarchy.

Prototype

Node * GetChild( int * pIndices, int nLevels )

Parameters

  • int * pIndices: The array of child node indices.
  • int nLevels: The number of levels in the hierarchy that the node is at.

Return Value

The return value is a pointer to the node, or NULL if the method fails because it cannot find the specified child node.