Public Types | |
| enum | eParamType { ParamUnknown = 0 , ParamReal = 1 , ParamInteger = 2 } |
| Type of a function parameter. More... | |
| enum | eValueType { ValueUnknown = 0 , ValueReal = 1 , ValueInteger = 2 , ValueBool = 3 , ValueString = 4 , ValueReal3 = 5 } |
| Type of a function value. More... | |
Public Member Functions | |
| virtual | ~ICaseFunction ()=default |
| Releases resources. | |
Function Name | |
| virtual String | name () const =0 |
| function name | |
| virtual void | setName (const String &new_name)=0 |
| Sets the function name to new_name. | |
Parameter Type | |
| virtual eParamType | paramType () const =0 |
| Function parameter type. | |
| virtual void | setParamType (eParamType type)=0 |
| Sets the function parameter type. | |
Value Type | |
| virtual eValueType | valueType () const =0 |
| Function value type. | |
| virtual void | setValueType (eValueType type)=0 |
| Sets the function value type. | |
| virtual void | setTransformValueFunction (const String &str)=0 |
| Sets a value transformation function. For now, this is just a multiplicative coefficient. The string str must be convertible to the value type. | |
| virtual String | transformValueFunction () const =0 |
| Returns the value transformation function. | |
| virtual void | setTransformParamFunction (const String &str)=0 |
| Sets a parameter transformation function. For now, this is just a multiplicative coefficient. It is only applied to real parameters. The string str must be convertible to a real number. | |
| virtual String | transformParamFunction () const =0 |
| Parameter transformation function. | |
| virtual bool | checkIfValid () const =0 |
| Checks the validity of the function. | |
| virtual void | setDeltatCoef (Real v)=0 |
| Sets the value of the deltat multiplier coefficient. | |
| virtual Real | deltatCoef () const =0 |
| Value of the deltat multiplier coefficient. | |
| virtual void | value (Real param, Real &v) const =0 |
| Value v of the option for parameter param. | |
| virtual void | value (Real param, Integer &v) const =0 |
| Value v of the option for parameter param. | |
| virtual void | value (Real param, bool &v) const =0 |
| Value v of the option for parameter param. | |
| virtual void | value (Real param, String &v) const =0 |
| Value v of the option for parameter param. | |
| virtual void | value (Real param, Real3 &v) const =0 |
| Value v of the option for parameter param. | |
| virtual void | value (Integer param, Real &v) const =0 |
| Value v of the option for parameter param. | |
| virtual void | value (Integer param, Integer &v) const =0 |
| Value v of the option for parameter param. | |
| virtual void | value (Integer param, bool &v) const =0 |
| virtual void | value (Integer param, String &v) const =0 |
| Value v of the option for parameter param. | |
| virtual void | value (Integer param, Real3 &v) const =0 |
| Value v of the option for parameter param. | |
Definition at line 45 of file ICaseFunction.h.
Type of a function parameter.
| Enumerator | |
|---|---|
| ParamUnknown | Unknown parameter type. |
| ParamReal | Real type parameter. |
| ParamInteger | Integer type parameter. |
Definition at line 54 of file ICaseFunction.h.
|
pure virtual |
Checks the validity of the function.
| true | if the function is valid, |
| false | otherwise. |
Implemented in Arcane::CaseFunction, and Arcane::CaseTable.
|
pure virtual |
Value of the deltat multiplier coefficient.
Implemented in Arcane::CaseFunction.
|
pure virtual |
|
pure virtual |
Function parameter type.
Implemented in Arcane::CaseFunction.
Referenced by Arcane::CaseOptions::read(), and Arcane::CaseOptionSimpleT< T >::updateFromFunction().
|
pure virtual |
Sets the value of the deltat multiplier coefficient.
This coefficient, 0.0 by default, is used for functions that take physical time as a parameter. In this case, the function uses the global current time as a parameter, to which the global current time step multiplied by this coefficient is added.
Implemented in Arcane::CaseFunction.
|
pure virtual |
Sets the function name to new_name.
Implemented in Arcane::CaseFunction.
|
pure virtual |
Sets the function parameter type.
Implemented in Arcane::CaseFunction, and Arcane::CaseTable.
|
pure virtual |
Sets a parameter transformation function. For now, this is just a multiplicative coefficient. It is only applied to real parameters. The string str must be convertible to a real number.
Implemented in Arcane::CaseFunction.
|
pure virtual |
Sets a value transformation function. For now, this is just a multiplicative coefficient. The string str must be convertible to the value type.
Implemented in Arcane::CaseFunction.
|
pure virtual |
Sets the function value type.
Implemented in Arcane::CaseFunction.
|
pure virtual |
Parameter transformation function.
Implemented in Arcane::CaseFunction.
|
pure virtual |
Returns the value transformation function.
Implemented in Arcane::CaseFunction.
Value v of the option for parameter param.
Implemented in Arcane::CaseFunction2, and Arcane::CaseTable.
References value().
Value v of the option for parameter param.
Implemented in Arcane::CaseFunction2, and Arcane::CaseTable.
Value v of the option for parameter param.
Implemented in Arcane::CaseFunction2, and Arcane::CaseTable.
Value v of the option for parameter param.
Implemented in Arcane::CaseFunction2, and Arcane::CaseTable.
|
pure virtual |
Value v of the option for parameter param.
Implemented in Arcane::CaseFunction2, and Arcane::CaseTable.
Value v of the option for parameter param.
Implemented in Arcane::CaseFunction2, and Arcane::CaseTable.
Value v of the option for parameter param.
Implemented in Arcane::CaseFunction2, and Arcane::CaseTable.
Referenced by value().
Value v of the option for parameter param.
Implemented in Arcane::CaseFunction2, and Arcane::CaseTable.
Value v of the option for parameter param.
Implemented in Arcane::CaseFunction2, and Arcane::CaseTable.
|
pure virtual |
Function value type.
Implemented in Arcane::CaseFunction.
Referenced by Arcane::CaseOptions::read().