Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
StandardCaseFunction.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* StandardCaseFunction.h (C) 2000-2025 */
9/* */
10/* Class managing a standard dataset function. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_STANDARDCASEFUNCTION_H
13#define ARCANE_CORE_STANDARDCASEFUNCTION_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/core/CaseFunction.h"
18#include "arcane/core/IStandardFunction.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
41class ARCANE_CORE_EXPORT StandardCaseFunction
42: public CaseFunction
43, public IStandardFunction
44{
45 public:
46
48 explicit StandardCaseFunction(const CaseFunctionBuildInfo& info);
49 ~StandardCaseFunction() override;
50
51 private:
52
53 void value(Real param, Real& v) const override;
54 void value(Real param, Integer& v) const override;
55 void value(Real param, bool& v) const override;
56 void value(Real param, String& v) const override;
57 void value(Real param, Real3& v) const override;
58 void value(Integer param, Real& v) const override;
59 void value(Integer param, Integer& v) const override;
60 void value(Integer param, bool& v) const override;
61 void value(Integer param, String& v) const override;
62 void value(Integer param, Real3& v) const override;
63
64 public:
65
66 // NOTE: The 'virtual' keyword is necessary for SWIG
67 // because this class has multiple inheritance and SWIG only takes
68 // the first one and therefore does not see the following methods
69 // as virtual.
70 virtual IBinaryMathFunctor<Real, Real, Real>* getFunctorRealRealToReal() override;
71 virtual IBinaryMathFunctor<Real, Real3, Real>* getFunctorRealReal3ToReal() override;
72 virtual IBinaryMathFunctor<Real, Real, Real3>* getFunctorRealRealToReal3() override;
73 virtual IBinaryMathFunctor<Real, Real3, Real3>* getFunctorRealReal3ToReal3() override;
74};
75
76/*---------------------------------------------------------------------------*/
77/*---------------------------------------------------------------------------*/
78
79} // namespace Arcane
80
81/*---------------------------------------------------------------------------*/
82/*---------------------------------------------------------------------------*/
83
84#endif
Information to build an instance of CaseFunction.
CaseFunction(const CaseFunctionBuildInfo &info)
Constructs a dataset function.
Interface of a binary mathematical function.
Interface managing a standard function.
Class managing a 3-dimensional real vector.
Definition Real3.h:132
void value(Real param, Real &v) const override
Value v of the option for parameter param.
StandardCaseFunction(const CaseFunctionBuildInfo &info)
Constructs a dataset function.
-- 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.