Browse
 
Tools
Rss Categories

LVParseTree::TagIterator

Reference Number: AA-00980 Views: 4463 0 Rating/ Voters

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

  • LVParseTree::Node::TagsBegin()
  • LVParseTree::Node::TagsEnd()

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

Function Return Type Description
Iterator(void)   Constructs a blank TagIterator; pointing at nothing.
Iterator(const TagIterator& other)   Copy constructor.
operator=(const TagIterator& other) LVParseTree::TagIterator& Assignment operator.
~TagIterator(void)   Destructor.
operator ++ (void) LVParseTree::TagIterator& pre-increments the iterator (++itr).
operator ++ (int) LVParseTree::TagIterator post-increments the iterator (itr++).
operator -> (void) const LVParseTree::Node* provides pointer-like access to the node the iterator is currently over
( e.g const char* text = itr->Text( ) )
operator * (void) const LVParseTree::Node& provides access to the node the iterator is currently over
(e.g. LVParseTree::Node n  = *itr )
operator==(const TagIterator& other) bool Tests equality with another TagIterator. Two TagIterators are equal if they are pointing to the same node in the same tree.
(e.g if itr1 == itr2 do something)
operator!=(const TagIterator& other) bool returns true if and only if the equality operator returns false.