12#ifndef ARCANE_CORE_CASEFUNCTION_H
13#define ARCANE_CORE_CASEFUNCTION_H
20#include "arcane/utils/String.h"
22#include "arcane/core/ICaseFunction.h"
95 void setName(
const String& new_name)
override;
98 void setParamType(eParamType type)
override;
101 void setValueType(eValueType type)
override;
103 void setTransformValueFunction(
const String& str)
override;
106 void setTransformParamFunction(
const String& str)
override;
112 bool checkIfValid()
const override;
115 ITraceMng* traceMng()
const {
return m_trace; }
131 template <
typename ParamType>
void _applyParamTransform2(ParamType& param)
const;
132 Real _applyValueComulTransform(
Real v,
Real comul)
const;
135 bool _applyValueComulTransform(
bool v,
bool comul)
const;
138 void _applyValueTransform(
Real&
value)
const;
141 void _applyValueTransform(
Real3&
value)
const;
142 void _applyValueTransform(
bool&
value)
const;
143 template <
typename ValueType>
void _applyValueTransform2(
ValueType&
value)
const;
144 void _applyParamTransform(
Real&
value)
const;
#define ARCCORE_DEFINE_REFERENCE_COUNTED_INCLASS_METHODS()
Macro to define methods managing counters of references.
Management of references to a C++ class.
Information to build an instance of CaseFunction.
ITraceMng * m_trace_mng
Associated trace manager.
String m_name
Name of the function.
String m_transform_value_func
Y transformation function.
Real m_deltat_coef
Multiplier coefficient of deltat for time tables.
ICaseFunction::eValueType m_value_type
Value type (y).
String m_transform_param_func
X transformation function.
ARCANE_DEPRECATED_260 CaseFunctionBuildInfo(ISubDomain *sd, const String &name)
ICaseFunction::eParamType m_param_type
Parameter type (x).
String transformValueFunction() const override
Returns the value transformation function.
void setDeltatCoef(Real v) override
Sets the value of the deltat multiplier coefficient.
eParamType m_param_type
Parameter type (x).
String m_name
Name of the function.
eValueType m_value_type
Value type (y).
String m_transform_param_func
Parameter transformation function.
CaseFunction(const CaseFunctionBuildInfo &info)
Constructs a dataset function.
String name() const override
function name
Real deltatCoef() const override
Value of the deltat multiplier coefficient.
String m_transform_value_func
Value transformation function.
ITraceMng * m_trace
Trace manager.
String transformParamFunction() const override
Parameter transformation function.
eValueType valueType() const override
Function value type.
eParamType paramType() const override
Function parameter type.
Interface of a dataset function.
eParamType
Type of a function parameter.
@ ParamUnknown
Unknown parameter type.
eValueType
Type of a function value.
@ ValueUnknown
Unknown value type.
virtual void value(Real param, Real &v) const =0
Value v of the option for parameter param.
Interface of the subdomain manager.
Class managing a 3-dimensional real vector.
Reference to an instance.
Thread-safe implementation of a reference counter.
Unicode character string.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.
double Real
Type representing a real number.