LVParseTree_ChildrenIterator C API

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>

Return Type

Function

Description

H_PARSE_TREE_CHILDREN_ITR

LVParseTree_ChildrenIterator_Create(void)

Creates a blank iterator; its not pointing over anything.

H_PARSE_TREE_CHILDREN_ITR

LVParseTree_ChildrenIterator_CreateFromCopy
                                                               (H_PARSE_TREE_CHILDREN_ITR Other)

Creates a new iterator from another.  Both iterators will need to be released when no longer needed.

void

LVParseTree_ChildrenIterator_Copy(H_PARSE_TREE_CHILDREN_ITR Itr,
                                                                  H_PARSE_TREE_CHILDREN_ITR  Other)

Copies the data from one handle into another.

void

LVParseTree_ChildrenIterator_Release(H_PARSE_CHILDREN_ITR Itr)

Releases the memory allocated to the iterator handle.

 

 

 

void

LVParseTree_ChildrenIterator_Advance(H_PARSE_TREE_CHILDREN_ITR Itr)

Advances the iterator one position.

H_PARSE_TREE_NODE

LVParseTree_ChildrenIterator_GetNode(H_PARSE_TREE_CHILDREN_ITR Itr)

Provides access to a node in the parse tree.

int

LVParseTree_ChildrenIterator_AreEqual(H_PARSE_TREE_CHILDREN_ITR Itr1,
                                                                         H_PARSE_TREE_CHILDREN_ITR Itr2)

Tests equality with another iterator. Two iterators are equal if they are pointing to the same node in a parse tree.

 

 

 

 


Complete Help Topic List | Speech Engine Product Information