Browse
 
Tools
Rss Categories

LVParseTree_TerminalIterator C API

Reference Number: AA-00966 Views: 4274 0 Rating/ Voters

An LVParseTree_TerminalIterator object is an adaptation of the standard LVParseTree_Iterator. It only visits the nodes in a tree that are terminals. You can get a TerminalIterator from a Node by calling:

  • LVParseTree_Node_CreateTerminalIteratorBegin(H_PARSE_TREE_NODE Node)
  • LVParseTree_Node_CreateTerminalIteratorEnd(H_PARSE_TREE_NODE Node)

With these iterators, you can visit all of the terminal nodes in the subtree rooted by Node.

Use <LVSpeechPort.h> or <LV_SRE_ParseTree.h>

Function Return Type Description
LVParseTree_TerminalIterator_Create(void) H_PARSE_TREE_TERMINAL_ITR Creates a blank iterator; its not pointing over anything.
LVParseTree_TerminalIterator_CreateFromCopy
(H_PARSE_TREE_TERMINAL_ITR Other)
H_PARSE_TREE_TERMINAL_ITR Creates a new iterator from another.  Both iterators will need to be released when no longer needed.
LVParseTree_TerminalIterator_Copy
(H_PARSE_TREE_TERMINAL_ITR Itr, H_PARSE_TREE_TERMINAL_ITR Other)
void Copies the data from one handle into another.
LVParseTree_TerminalIterator_Release
(H_PARSE_TERMINAL_ITR Itr)
void Releases the memory allocated to the iterator handle.
LVParseTree_TerminalIterator_Advance
(H_PARSE_TREE_TERMINAL_ITR Itr)
void Advances the iterator one position.
LVParseTree_TerminalIterator_GetNode
(H_PARSE_TREE_TERMINAL_ITR Itr)
H_PARSE_TREE_NODE Provides access to a node in the parse tree.
LVParseTree_TerminalIterator_AreEqual
(H_PARSE_TREE_TERMINAL_ITR Itr1, H_PARSE_TREE_TERMINAL_ITR Itr2)
int Tests equality with another iterator. Two iterators are equal if they are pointing to the same node in a parse tree.