Open CASCADE Technology 6.6.0
|
This class describes any reel value defined in an
expression.
#include <Expr_NumericValue.hxx>
Public Member Functions | |
Expr_NumericValue (const Standard_Real val) | |
Standard_Real | GetValue () const |
void | SetValue (const Standard_Real val) |
Standard_Integer | NbSubExpressions () const |
Returns the number of sub-expressions contained in <me> ( >= 0) | |
const Handle_Expr_GeneralExpression & | SubExpression (const Standard_Integer I) const |
Returns the -th sub-expression of <me> raises OutOfRange if > NbSubExpressions(me) | |
Handle_Expr_GeneralExpression | Simplified () const |
Returns a GeneralExpression after replacement of NamedUnknowns by an associated expression and after values computation. | |
Handle_Expr_GeneralExpression | ShallowSimplified () const |
Returns a GeneralExpression after a simplification of the arguments of <me>. | |
Handle_Expr_GeneralExpression | Copy () const |
Returns a copy of <me> having the same unknowns and functions. | |
Standard_Boolean | ContainsUnknowns () const |
Tests if <me> contains NamedUnknown. | |
Standard_Boolean | Contains (const Handle< Expr_GeneralExpression > &exp) const |
Tests if <exp> is contained in <me>. | |
Standard_Boolean | IsIdentical (const Handle< Expr_GeneralExpression > &Other) const |
Tests if <me> and <Other> define the same expression. This method does not include any simplification before testing. | |
Standard_Boolean | IsLinear () const |
Tests if <me> is linear on every NamedUnknown it contains. | |
Handle_Expr_GeneralExpression | Derivative (const Handle< Expr_NamedUnknown > &X) const |
Returns the derivative on <X> unknown of <me> | |
virtual Handle_Expr_GeneralExpression | NDerivative (const Handle< Expr_NamedUnknown > &X, const Standard_Integer N) const |
Returns the <N>-th derivative on <X> unknown of <me>. Raises OutOfRange if <N> <= 0 | |
void | Replace (const Handle< Expr_NamedUnknown > &var, const Handle< Expr_GeneralExpression > &with) |
Replaces all occurences of with <with> in <me> | |
Standard_Real | Evaluate (const Expr_Array1OfNamedUnknown &vars, const TColStd_Array1OfReal &vals) const |
Returns the value of <me> (as a Real) by replacement of <vars> by <vals>. | |
TCollection_AsciiString | String () const |
returns a string representing <me> in a readable way. |
Expr_NumericValue::Expr_NumericValue | ( | const Standard_Real | val | ) |
Standard_Boolean Expr_NumericValue::Contains | ( | const Handle< Expr_GeneralExpression > & | exp | ) | const [virtual] |
Implements Expr_GeneralExpression.
Standard_Boolean Expr_NumericValue::ContainsUnknowns | ( | ) | const [virtual] |
Implements Expr_GeneralExpression.
Handle_Expr_GeneralExpression Expr_NumericValue::Copy | ( | ) | const [virtual] |
Implements Expr_GeneralExpression.
Handle_Expr_GeneralExpression Expr_NumericValue::Derivative | ( | const Handle< Expr_NamedUnknown > & | X | ) | const [virtual] |
Implements Expr_GeneralExpression.
Standard_Real Expr_NumericValue::Evaluate | ( | const Expr_Array1OfNamedUnknown & | vars, |
const TColStd_Array1OfReal & | vals | ||
) | const [virtual] |
Implements Expr_GeneralExpression.
Standard_Real Expr_NumericValue::GetValue | ( | ) | const |
Standard_Boolean Expr_NumericValue::IsIdentical | ( | const Handle< Expr_GeneralExpression > & | Other | ) | const [virtual] |
Implements Expr_GeneralExpression.
Standard_Boolean Expr_NumericValue::IsLinear | ( | ) | const [virtual] |
Implements Expr_GeneralExpression.
Standard_Integer Expr_NumericValue::NbSubExpressions | ( | ) | const [virtual] |
Implements Expr_GeneralExpression.
virtual Handle_Expr_GeneralExpression Expr_NumericValue::NDerivative | ( | const Handle< Expr_NamedUnknown > & | X, |
const Standard_Integer | N | ||
) | const [virtual] |
Reimplemented from Expr_GeneralExpression.
void Expr_NumericValue::Replace | ( | const Handle< Expr_NamedUnknown > & | var, |
const Handle< Expr_GeneralExpression > & | with | ||
) | [virtual] |
Implements Expr_GeneralExpression.
void Expr_NumericValue::SetValue | ( | const Standard_Real | val | ) |
Handle_Expr_GeneralExpression Expr_NumericValue::ShallowSimplified | ( | ) | const [virtual] |
Implements Expr_GeneralExpression.
Handle_Expr_GeneralExpression Expr_NumericValue::Simplified | ( | ) | const [virtual] |
Implements Expr_GeneralExpression.
TCollection_AsciiString Expr_NumericValue::String | ( | ) | const [virtual] |
Implements Expr_GeneralExpression.
const Handle_Expr_GeneralExpression& Expr_NumericValue::SubExpression | ( | const Standard_Integer | I | ) | const [virtual] |
Implements Expr_GeneralExpression.