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>
Function |
Return Type |
Description |
LVParseTree_TagIterator_Create (void) |
H_PARSE_TREE_TAG_ITR |
Creates a blank iterator; pointing at nothing. |
LVParseTree_TagIterator_CreateFromCopy (H_PARSE_TREE_TAG_ITR Other) |
H_PARSE_TREE_TAG_ITR |
Creates a new iterator from another. Both iterators will need to be released when no longer needed. |
LVParseTree_TagIterator_Copy (H_PARSE_TREE_TAG_ITR Itr, H_PARSE_TREE_TAG_ITR Other) |
void |
Creates a new iterator from another. Both iterators will need to be released when no longer needed. |
LVParseTree_TagIterator_Release (H_PARSE_TREE_TAG_ITR Itr) |
void |
Releases the memory allocated to the iterator handle. |
LVParseTree_TagIterator_Advance (H_PARSE_TREE_TAG_ITR Itr) |
void |
Advances the iterator one position. |
LVParseTree_TagIterator_GetNode (H_PARSE_TREE_TAG_ITR Itr) |
H_PARSE_TREE_NODE |
Provides access to a node in the parse tree. |
LVParseTree_TagIterator_AreEqual (H_PARSE_TREE_TAG_ITR Itr1, H_PARSE_TREE_TAG_ITR Itr2) |
int |
Tests equality with another iterator. Two iterators are equal if they are pointing to the same node in a parse tree. |