ExprIntrp
OCCT package ExprIntrp: ExprIntrp, ExprIntrp_Analysis, ExprIntrp_Generator, ExprIntrp_GenExp, and 3 more bound classes.
ExprIntrp
Describes an interpreter for GeneralExpressions, GeneralFunctions, and GeneralRelations defined in package Expr.
Constructors(1)
ExprIntrp_Analysis
Constructors(1)
Instance methods(18)
- SetMaster(agen: ExprIntrp_Generator): voidParameters (1)
agen
- Push(exp: Expr_GeneralExpression): voidParameters (1)
exp
- PushRelation(rel: Expr_GeneralRelation): voidParameters (1)
rel
- PushName(name: TCollection_AsciiString): voidParameters (1)
name
- PushValue(degree: number): voidParameters (1)
degree
- PushFunction(func: Expr_GeneralFunction): voidParameters (1)
func
- PopValue(): number
- IsExpStackEmpty(): boolean
- IsRelStackEmpty(): boolean
- ResetAll(): void
- Use(func: Expr_NamedFunction): voidParameters (1)
func
- Use(named: Expr_NamedExpression): voidParameters (1)
named
- Parameters (1)
name
- Parameters (1)
name
ExprIntrp_Generator
Implements general services for interpretation of expressions.
Static methods(2)
- get_type_name(): string
Instance methods(7)
- Use(func: Expr_NamedFunction): voidParameters (1)
func
- Use(named: Expr_NamedExpression): voidParameters (1)
named
Returns NamedExpression with name <name> already interpreted if it exists. Returns a null handle if not.
Parameters (1)name
Returns NamedFunction with name <name> already interpreted if it exists. Returns a null handle if not.
Parameters (1)name
ExprIntrp_GenExp
This class permits, from a string, to create any kind of expression of package Expr by using built-in functions such as Sin,Cos, etc, and by creating variables.
Static methods(3)
- get_type_name(): string
Instance methods(4)
- Process(str: TCollection_AsciiString): void
Processes given string.
Parameters (1)str
- IsDone(): boolean
Returns false if any syntax error has occurred during process.
Returns expression generated. Raises an exception if IsDone answers false.
ExprIntrp_GenFct
Implements an interpreter for defining functions. All its functionalities can be found in class GenExp.
Static methods(3)
- get_type_name(): string
Instance methods(3)
- Process(str: TCollection_AsciiString): voidParameters (1)
str
- IsDone(): boolean
ExprIntrp_GenRel
Implements an interpreter for equations or system of equations made of expressions of package Expr.
Static methods(3)
- get_type_name(): string
Instance methods(4)
- Process(str: TCollection_AsciiString): void
Processes given string.
Parameters (1)str
- IsDone(): boolean
Returns false if any syntax error has occurred during process.
Returns relation generated. Raises an exception if IsDone answers false.
ExprIntrp_SyntaxError
Constructors(2)
- constructor(theMessage: string): ExprIntrp_SyntaxErrorParameters (1)
theMessage
- constructor(theMessage: string, theStackTrace: string): ExprIntrp_SyntaxErrorParameters (2)
theMessagetheStackTrace
Instance methods(1)
- ExceptionType(): string