Dataset function. More...
#include <arcane/core/CaseFunction.h>
Public Member Functions | |
| CaseFunction (const CaseFunctionBuildInfo &info) | |
| Constructs a dataset function. | |
| String | name () const override |
| function name | |
| void | setName (const String &new_name) override |
| Sets the function name to new_name. | |
| eParamType | paramType () const override |
| Function parameter type. | |
| void | setParamType (eParamType type) override |
| Sets the function parameter type. | |
| eValueType | valueType () const override |
| Function value type. | |
| void | setValueType (eValueType type) override |
| Sets the function value type. | |
| void | setTransformValueFunction (const String &str) override |
| Sets a value transformation function. For now, this is just a multiplicative coefficient. The string str must be convertible to the value type. | |
| String | transformValueFunction () const override |
| Returns the value transformation function. | |
| void | setTransformParamFunction (const String &str) override |
| 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. | |
| String | transformParamFunction () const override |
| Parameter transformation function. | |
| void | setDeltatCoef (Real v) override |
| Sets the value of the deltat multiplier coefficient. | |
| Real | deltatCoef () const override |
| Value of the deltat multiplier coefficient. | |
| bool | checkIfValid () const override |
| Checks the validity of the function. | |
| Ref< ICaseFunction > | toReference () |
| ITraceMng * | traceMng () const |
| Public Member Functions inherited from Arcane::ICaseFunction | |
| virtual | ~ICaseFunction ()=default |
| Releases resources. | |
| 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. | |
| Public Member Functions inherited from Arcane::ReferenceCounterImpl | |
| void | addReference () |
| void | removeReference () |
| void | _internalAddReference () |
| bool | _internalRemoveReference () |
Protected Member Functions | |
| template<typename ParamType> | |
| void | _applyParamTransform2 (ParamType ¶m) const |
| Real | _applyValueComulTransform (Real v, Real comul) const |
| Integer | _applyValueComulTransform (Integer v, Integer comul) const |
| String | _applyValueComulTransform (const String &v, const String &comul) const |
| bool | _applyValueComulTransform (bool v, bool comul) const |
| Real3 | _applyValueComulTransform (Real3 v, Real3 comul) const |
| void | _applyValueTransform (Real &value) const |
| void | _applyValueTransform (Integer &value) const |
| void | _applyValueTransform (String &value) const |
| void | _applyValueTransform (Real3 &value) const |
| void | _applyValueTransform (bool &value) const |
| template<typename ValueType> | |
| void | _applyValueTransform2 (ValueType &value) const |
| void | _applyParamTransform (Real &value) const |
| void | _applyParamTransform (Integer &value) const |
Private Member Functions | |
| ARCCORE_DEFINE_REFERENCE_COUNTED_INCLASS_METHODS () | |
Private Attributes | |
| ITraceMng * | m_trace |
| Trace manager. | |
| String | m_name |
| Name of the function. | |
| eParamType | m_param_type |
| Parameter type (x). | |
| eValueType | m_value_type |
| Value type (y). | |
| String | m_transform_param_func |
| Parameter transformation function. | |
| String | m_transform_value_func |
| Value transformation function. | |
| Real | m_deltat_coef |
Additional Inherited Members | |
| Public Types inherited from Arcane::ICaseFunction | |
| 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... | |
Dataset function.
Definition at line 80 of file CaseFunction.h.
|
explicit |
Constructs a dataset function.
Definition at line 45 of file CaseFunction.cc.
References m_name, m_param_type, m_trace, m_transform_param_func, m_transform_value_func, and m_value_type.
Referenced by Arcane::CaseFunction2::CaseFunction2(), Arcane::CaseTable::CaseTable(), and Arcane::StandardCaseFunction::StandardCaseFunction().
|
override |
Definition at line 60 of file CaseFunction.cc.
|
protected |
Definition at line 242 of file CaseFunction.cc.
|
protected |
Definition at line 233 of file CaseFunction.cc.
|
protected |
Definition at line 213 of file CaseFunction.cc.
|
protected |
Definition at line 156 of file CaseFunction.cc.
|
protected |
Definition at line 149 of file CaseFunction.cc.
|
protected |
Definition at line 139 of file CaseFunction.cc.
Definition at line 134 of file CaseFunction.cc.
Definition at line 144 of file CaseFunction.cc.
|
protected |
Definition at line 204 of file CaseFunction.cc.
|
protected |
Definition at line 194 of file CaseFunction.cc.
|
protected |
Definition at line 184 of file CaseFunction.cc.
|
protected |
Definition at line 189 of file CaseFunction.cc.
|
protected |
Definition at line 199 of file CaseFunction.cc.
|
protected |
Definition at line 167 of file CaseFunction.cc.
|
overridevirtual |
Checks the validity of the function.
| true | if the function is valid, |
| false | otherwise. |
Implements Arcane::ICaseFunction.
Reimplemented in Arcane::CaseTable.
Definition at line 125 of file CaseFunction.cc.
|
inlineoverridevirtual |
Value of the deltat multiplier coefficient.
Implements Arcane::ICaseFunction.
Definition at line 110 of file CaseFunction.h.
|
inlineoverridevirtual |
function name
Implements Arcane::ICaseFunction.
Definition at line 94 of file CaseFunction.h.
References m_name.
Referenced by Arcane::CaseTable::_findValue().
|
inlineoverridevirtual |
Function parameter type.
Implements Arcane::ICaseFunction.
Definition at line 97 of file CaseFunction.h.
References m_param_type.
Referenced by Arcane::CaseTable::setParamType().
|
inlineoverridevirtual |
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.
Implements Arcane::ICaseFunction.
Definition at line 109 of file CaseFunction.h.
|
overridevirtual |
Sets the function name to new_name.
Implements Arcane::ICaseFunction.
Definition at line 68 of file CaseFunction.cc.
References m_name, and Arcane::String::null().
|
overridevirtual |
Sets the function parameter type.
Implements Arcane::ICaseFunction.
Reimplemented in Arcane::CaseTable.
Definition at line 82 of file CaseFunction.cc.
References m_param_type.
Referenced by Arcane::CaseTable::setParamType().
|
overridevirtual |
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.
Implements Arcane::ICaseFunction.
Definition at line 116 of file CaseFunction.cc.
References m_transform_param_func.
|
overridevirtual |
Sets a value transformation function. For now, this is just a multiplicative coefficient. The string str must be convertible to the value type.
Implements Arcane::ICaseFunction.
Definition at line 107 of file CaseFunction.cc.
References m_transform_value_func.
|
overridevirtual |
Sets the function value type.
Implements Arcane::ICaseFunction.
Definition at line 93 of file CaseFunction.cc.
References m_value_type.
| Ref< ICaseFunction > Arcane::CaseFunction::toReference | ( | ) |
Definition at line 251 of file CaseFunction.cc.
|
inline |
Definition at line 115 of file CaseFunction.h.
|
inlineoverridevirtual |
Parameter transformation function.
Implements Arcane::ICaseFunction.
Definition at line 107 of file CaseFunction.h.
References m_transform_param_func.
|
inlineoverridevirtual |
Returns the value transformation function.
Implements Arcane::ICaseFunction.
Definition at line 104 of file CaseFunction.h.
References m_transform_value_func.
|
inlineoverridevirtual |
Function value type.
Implements Arcane::ICaseFunction.
Definition at line 100 of file CaseFunction.h.
References m_value_type.
|
private |
Definition at line 126 of file CaseFunction.h.
|
private |
Name of the function.
Definition at line 121 of file CaseFunction.h.
Referenced by CaseFunction(), name(), and setName().
|
private |
Parameter type (x).
Definition at line 122 of file CaseFunction.h.
Referenced by CaseFunction(), paramType(), and setParamType().
|
private |
|
private |
Parameter transformation function.
Definition at line 124 of file CaseFunction.h.
Referenced by CaseFunction(), setTransformParamFunction(), and transformParamFunction().
|
private |
Value transformation function.
Definition at line 125 of file CaseFunction.h.
Referenced by CaseFunction(), setTransformValueFunction(), and transformValueFunction().
|
private |
Value type (y).
Definition at line 123 of file CaseFunction.h.
Referenced by CaseFunction(), setValueType(), and valueType().