Open CASCADE Technology
7.2.0
|
This class defines all the methods to create and compute an algebraic formula. More...
#include <Units_MathSentence.hxx>
Public Member Functions | |
Units_MathSentence (const Standard_CString astring) | |
Creates and returns a MathSentence object. The string <astring> describes an algebraic formula in natural language. More... | |
Public Member Functions inherited from Units_Sentence | |
Units_Sentence (const Handle< Units_Lexicon > &alexicon, const Standard_CString astring) | |
Creates and returns a Sentence, by analyzing the string <astring> with the lexicon <alexicon>. More... | |
void | SetConstants () |
For each constant encountered, sets the value. More... | |
Handle< Units_TokensSequence > | Sequence () const |
Returns <thesequenceoftokens>. More... | |
void | Sequence (const Handle< Units_TokensSequence > &asequenceoftokens) |
Sets the field <thesequenceoftokens> to <asequenceoftokens>. More... | |
Handle< Units_Token > | Evaluate () |
Computes and returns in a token the result of the expression. More... | |
Standard_Boolean | IsDone () const |
Return True if number of created tokens > 0 (i.e creation of sentence is succesfull) More... | |
void | Dump () const |
Useful for debugging. More... | |
This class defines all the methods to create and compute an algebraic formula.
Units_MathSentence::Units_MathSentence | ( | const Standard_CString | astring | ) |
Creates and returns a MathSentence object. The string <astring> describes an algebraic formula in natural language.