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
- // You can fill in the information for a LVParseTree object with the
- // LVSpeechPort::GetParseTree function.
- LVParseTree ParseTree(port.GetInterpretation(int voiceChannel,
int index));
- // You can also create a ParseTree object with properties copied
- // from another. To use this copy constructor, you must first create an
- // empty handle to use as a parameter.
- LVParseTree NewParseTree;
- LVParseTree(NewParseTree, ParseTree);
- // The new object is the first parameter, and the original is the second.
- // The equals operator does the same thing, making the following line
- // equivalent to the previous line.
- NewParseTree = ParseTree;
- // Finally, you can use the deconstructor to release all assets associated
- // with the parse trees you have created.
- ~LVParseTree ParseTree();
- ~LVParseTree NewParseTree();
See Also