Browse
 
Tools
Rss Categories

LVParseTree Construction, Assignment and Destruction

Reference Number: AA-00969 Views: 1608 0 Rating/ Voters

LVParseTree objects are fully copyable and assignable.

Functions

  • LVParseTree()

    LVParseTree(const LVParseTree& Other)

    LVParseTree& operator = (const LVParseTree& Other)

    ~LVParseTree()

Parameters

Other

The LVParseTree object being copied

Remarks

You shouldn't have to worry too much about construction or destruction of an LVParseTree object. When you declare an LVParseTree, an empty tree is created. Just set it equal to the results of a decode, and begin using it.

Example

  1. // You can fill in the information for a LVParseTree object with the
  2. // LVSpeechPort::GetParseTree function.
  3. LVParseTree ParseTree(port.GetInterpretation(int voiceChannel,
    int index));

  4. // You can also create a ParseTree object with properties copied
  5. // from another. To use this copy constructor, you must first create an
  6. // empty handle to use as a parameter.
  7. LVParseTree NewParseTree;
  8. LVParseTree(NewParseTree, ParseTree);

  9. // The new object is the first parameter, and the original is the second.
  10. // The equals operator does the same thing, making the following line
  11. // equivalent to the previous line.
  12. NewParseTree = ParseTree;

  13. // Finally, you can use the deconstructor to release all assets associated
  14. // with the parse trees you have created.
  15. ~LVParseTree ParseTree();
  16. ~LVParseTree NewParseTree();

See Also