An LVParseTree_TagIterator object is an adaptation of the standard LVParseTree_Iterator. It only visits the nodes in a tree that are tags. You can get a tag iterator from a Node by calling:
LVParseTree_Node_CreateTagIteratorBegin(H_PARSE_TREE_NODE Node)
LVParseTree_Node_CreateTagIteratorEnd(H_PARSE_TREE_NODE Node)
With these iterators, you can traverse all of the tags in the subtreee rooted by Node.
Use <LVSpeechPort.h> or <LV_SRE_ParseTree.h>
|
Return Type |
Function |
Description |
|
H_PARSE_TREE_TAG_ITR |
LVParseTree_TagIterator_Create(void) |
Creates a blank iterator; its not pointing over anything. |
|
H_PARSE_TREE_TAG_ITR |
LVParseTree_TagIterator_CreateFromCopy (H_PARSE_TREE_TAG_ITR Other) |
Creates a new iterator from another. Both iterators will need to be released when no longer needed. |
|
void |
LVParseTree_TagIterator_Copy(H_PARSE_TREE_TAG_ITR Itr, |
Copies the data from one handle into another. |
|
void |
LVParseTree_TagIterator_Release(H_PARSE_TREE_TAG_ITR Itr) |
Releases the memory allocated to the iterator handle. |
|
|
|
|
|
void |
LVParseTree_TagIterator_Advance(H_PARSE_TREE_TAG_ITR Itr) |
Advances the iterator one position. |
|
H_PARSE_TREE_NODE |
LVParseTree_TagIterator_GetNode(H_PARSE_TREE_TAG_ITR Itr) |
Provides access to a node in the parse tree. |
|
int |
LVParseTree_TagIterator_AreEqual(H_PARSE_TREE_TAG_ITR Itr1, |
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