# FoundationClasses
TKAdvTools
Expr

# Expr_GeneralFunction Class Reference

Defines the general purposes of any function.
.

`#include <Expr_GeneralFunction.hxx>`

Inheritance diagram for Expr_GeneralFunction:

[legend]

## Public Member Functions

virtual Standard_EXPORT Standard_Integer | NbOfVariables () const =0
| Returns the number of variables of <me>. .
virtual Standard_EXPORT Handle_Expr_NamedUnknown | Variable (const Standard_Integer index) const =0
| Returns the variable denoted by <index> in <me>. Raises OutOfRange if index > NbOfVariables. .
virtual Standard_EXPORT Handle_Expr_GeneralFunction | Copy () const =0
| Returns a copy of <me> with the same form. .
virtual Standard_EXPORT Handle_Expr_GeneralFunction | Derivative (const Handle(Expr_NamedUnknown)&var) const =0
| Returns Derivative of <me> for variable . .
virtual Standard_EXPORT Handle_Expr_GeneralFunction | Derivative (const Handle(Expr_NamedUnknown)&var, const Standard_Integer deg) const =0
| Returns Derivative of <me> for variable with degree <deg>. .
virtual Standard_EXPORT Standard_Real | Evaluate (const Expr_Array1OfNamedUnknown &vars, const TColStd_Array1OfReal &vals) const =0
| Computes the value of <me> with the given variables. Raises NotEvaluable if <vars> does not match all variables of <me>. .
virtual Standard_EXPORT Standard_Boolean | IsIdentical (const Handle(Expr_GeneralFunction)&func) const =0
| Tests if <me> and <func> are similar functions (same name and same used expression). .
virtual Standard_EXPORT Standard_Boolean | IsLinearOnVariable (const Standard_Integer index) const =0
| Tests if <me> is linear on variable on range <index> .
virtual Standard_EXPORT TCollection_AsciiString | GetStringName () const =0
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const

## Member Function Documentation

virtual Standard_EXPORT Handle_Expr_GeneralFunction Expr_GeneralFunction::Copy | ( |  | ) | const`[pure virtual]`

| Implemented in Expr_FunctionDerivative, and Expr_NamedFunction.

virtual Standard_EXPORT Handle_Expr_GeneralFunction Expr_GeneralFunction::Derivative | ( | const Handle(Expr_NamedUnknown)& | var,
|  | const Standard_Integer | deg
| ) | const`[pure virtual]`

| Implemented in Expr_FunctionDerivative, and Expr_NamedFunction.

virtual Standard_EXPORT Handle_Expr_GeneralFunction Expr_GeneralFunction::Derivative | ( | const Handle(Expr_NamedUnknown)& | var | ) | const`[pure virtual]`

| Implemented in Expr_FunctionDerivative, and Expr_NamedFunction.

virtual Standard_EXPORT Standard_Real Expr_GeneralFunction::Evaluate | ( | const Expr_Array1OfNamedUnknown & | vars,
|  | const TColStd_Array1OfReal & | vals
| ) | const`[pure virtual]`

| Implemented in Expr_FunctionDerivative, and Expr_NamedFunction.

virtual Standard_EXPORT TCollection_AsciiString Expr_GeneralFunction::GetStringName | ( |  | ) | const`[pure virtual]`

| Implemented in Expr_FunctionDerivative, and Expr_NamedFunction.

Standard_EXPORT const Expr_GeneralFunction::Handle | ( | Standard_Type |  | ) | const

| Reimplemented from MMgt_TShared. Reimplemented in Expr_FunctionDerivative, and Expr_NamedFunction.

virtual Standard_EXPORT Standard_Boolean Expr_GeneralFunction::IsIdentical | ( | const Handle(Expr_GeneralFunction)& | func | ) | const`[pure virtual]`

| Implemented in Expr_FunctionDerivative, and Expr_NamedFunction.

virtual Standard_EXPORT Standard_Boolean Expr_GeneralFunction::IsLinearOnVariable | ( | const Standard_Integer | index | ) | const`[pure virtual]`

| Implemented in Expr_FunctionDerivative, and Expr_NamedFunction.

virtual Standard_EXPORT Standard_Integer Expr_GeneralFunction::NbOfVariables | ( |  | ) | const`[pure virtual]`

| Implemented in Expr_FunctionDerivative, and Expr_NamedFunction.

virtual Standard_EXPORT Handle_Expr_NamedUnknown Expr_GeneralFunction::Variable | ( | const Standard_Integer | index | ) | const`[pure virtual]`

| Implemented in Expr_FunctionDerivative, and Expr_NamedFunction.

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

- Expr_GeneralFunction.hxx