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; }
122 eParamType m_param_type;
123 eValueType m_value_type;
124 String m_transform_param_func;
125 String m_transform_value_func;
131 template <
typename ParamType>
void _applyParamTransform2(ParamType& param)
const;
132 Real _applyValueComulTransform(Real v, Real comul)
const;
133 Integer _applyValueComulTransform(Integer v, Integer comul)
const;
134 String _applyValueComulTransform(
const String& v,
const String& comul)
const;
135 bool _applyValueComulTransform(
bool v,
bool comul)
const;
136 Real3 _applyValueComulTransform(Real3 v, Real3 comul)
const;
138 void _applyValueTransform(Real& value)
const;
139 void _applyValueTransform(Integer& value)
const;
140 void _applyValueTransform(String& 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;
145 void _applyParamTransform(Integer& 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.
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 transformParamFunction() const override
Parameter transformation function.
eValueType valueType() const override
Function value type.
eParamType paramType() const override
Function parameter type.
eParamType
Type of a function parameter.
@ ParamUnknown
Unknown parameter type.
eValueType
Type of a function value.
@ ValueUnknown
Unknown value type.
Interface of the subdomain manager.
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 --
double Real
Type representing a real number.