Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
Units_MathSentence Class Reference

This class defines all the methods to create and compute an algebraic formula. More...

#include <Units_MathSentence.hxx>

Inheritance diagram for Units_MathSentence:

Public Member Functions

 Units_MathSentence (const char *const astring)
 Creates and returns a MathSentence object. The string <astring> describes an algebraic formula in natural language.
Public Member Functions inherited from Units_Sentence
 Units_Sentence (const occ::handle< Units_Lexicon > &alexicon, const char *const astring)
 Createsand returns a Sentence, by analyzing the string <astring> with the lexicon <alexicon>.
void SetConstants ()
 For each constant encountered, sets the value.
occ::handle< NCollection_HSequence< occ::handle< Units_Token > > > Sequence () const
 Returns <thesequenceoftokens>.
void Sequence (const occ::handle< NCollection_HSequence< occ::handle< Units_Token > > > &asequenceoftokens)
 Sets the field <thesequenceoftokens> to <asequenceoftokens>.
occ::handle< Units_Token > Evaluate ()
 Computes and returns in a token the result of the expression.
bool IsDone () const
 Return True if number of created tokens > 0 (i.e creation of sentence is successful)
void Dump () const
 Useful for debugging.

Detailed Description

This class defines all the methods to create and compute an algebraic formula.

Constructor & Destructor Documentation

◆ Units_MathSentence()

Units_MathSentence::Units_MathSentence ( const char *const astring)

Creates and returns a MathSentence object. The string <astring> describes an algebraic formula in natural language.


The documentation for this class was generated from the following file: