LVParseTree::TerminalIterator

An LVParseTree::TerminalIterator object is an adaptation of the standard LVParseTree::Iterator.  It only visits the nodes in a tree that are terminals.  You get a TerminalIterator by calling:
 

LVParseTree::Node::TerminalsBegin( )
LVParseTree::Node::TerminalsEnd( )

Use <LVSpeechPort2.h> or <LV_SRE_ParseTree.h>

Return Type

Function

Description

 

 

 

 

Iterator(void)

Constructs a blank TerminalIterator; its not pointing over anything.

 

Iterator(const TerminalIterator& other)

Copy constructor.

LVParseTree::TerminalIterator&

operator=(const TerminalIterator& other)

Assignment operator.

 

~TerminalIterator(void)

Destructor.

 

 

 

LVParseTree::TerminalIterator&

operator ++ (void)

pre-increments the iterator (++itr).

LVParseTree::TerminalIterator

operator ++ (int)

post-increments the iterator (itr++).

const LVParseTree::Node*

operator -> (void)

provides pointer-like access to the node the iterator is currently over
( e.g const char* text = itr->Text( ) )

const LVParseTree::Node&

operator * (void)

provides access to the node the iterator is currently over
(e.g. LVParseTree::Node n  = *itr )

bool

operator==(const TerminalIterator& other)

Tests equality with another TerminalIterator.  Two TerminalIterators are equal if they are pointing to the same node in the same tree.
(e.g if itr1 == itr2 do something)

bool

operator!=(const TerminalIterator& other)

returns true if and only if the equality operator returns false.

 

 

 

 

 

 

 


Complete Help Topic List | Speech Engine Product Information