An LVParseTree_ChildrenIterator object traverses the immediate children of a rule node, from left to right.You get a ChildrenIterator object from a Node by calling
- LVParseTree_Node_CreateChildrenIteratorBegin(H_PARSE_TREE_NODE Node)
- LVParseTree_Node_CreateChildrenIteratorEnd(H_PARSE_TREE_NODE Node)
With these iterators, you can traverse the immediate children of Node.
Use <LVSpeechPort.h> or <LV_SRE_ParseTree.h>
Function | Return Type | Description |
LVParseTree_ChildrenIterator_Create(void) | H_PARSE_TREE_CHILDREN_ITR | Creates a blank iterator; pointing at nothing. |
LVParseTree_ChildrenIterator_CreateFromCopy (H_PARSE_TREE_CHILDREN_ITR Other) | H_PARSE_TREE_CHILDREN_ITR | Creates a new iterator from another. Both iterators will need to be released when no longer needed. |
LVParseTree_ChildrenIterator_Copy (H_PARSE_TREE_CHILDREN_ITR Itr, H_PARSE_TREE_CHILDREN_ITR Other) | void | Copies the data from one handle into another. |
LVParseTree_ChildrenIterator_Release (H_PARSE_CHILDREN_ITR Itr) | void | Releases the memory allocated to the iterator handle. |
LVParseTree_ChildrenIterator_Advance (H_PARSE_TREE_CHILDREN_ITR Itr) | void | Advances the iterator one position. |
LVParseTree_ChildrenIterator_IsPastEnd (H_PARSE_TREE_CHILDREN_ITR Itr) | int | Tests whether the iterator is past the end of the parse tree. |
LVParseTree_ChildrenIterator_GetNode (H_PARSE_TREE_CHILDREN_ITR Itr) | H_PARSE_TREE_NODE | Provides access to a node in the parse tree. |
LVParseTree_ChildrenIterator_AreEqual (H_PARSE_TREE_CHILDREN_ITR Itr1, H_PARSE_TREE_CHILDREN_ITR Itr2) | int | Tests equality with another iterator. Two iterators are equal if they are pointing to the same node in a parse tree. |