FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmfMultiArgBase.H
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2023 SAP SE
2 //
3 // SPDX-License-Identifier: Apache-2.0
4 //
5 // This file is part of FEDEM - https://openfedem.org
7 
8 #ifndef FMF_MULTIARG_BASE_H
9 #define FMF_MULTIARG_BASE_H
10 
11 #include "vpmDB/FmMathFuncBase.H"
12 
13 
15 {
17 
18 public:
19  virtual bool initGetValueNoRecursion() = 0;
20  virtual bool initGetValue();
21 
22  virtual double getValue(double x, int& ierr) const;
23  virtual double getValue(const std::vector<double>& x, int& ierr) const
24  { return this->FmMathFuncBase::getValue(x,ierr); }
25 
26 protected:
28  virtual ~FmfMultiArgBase() {}
29 
30  virtual double getValueNoRecursion(double x, int& ierr) const = 0;
31 
32  virtual bool cloneLocal(FmBase* obj, int depth);
33 };
34 
35 #endif
Base parent class for the model data structure entries.
Definition: FmBase.H:37
Definition: FmMathFuncBase.H:22
virtual double getValue(double x, int &ierr) const
Definition: FmMathFuncBase.C:117
Definition: FmfMultiArgBase.H:15
virtual bool initGetValue()
Definition: FmfMultiArgBase.C:33
virtual double getValue(const std::vector< double > &x, int &ierr) const
Definition: FmfMultiArgBase.H:23
virtual double getValue(double x, int &ierr) const
Definition: FmfMultiArgBase.C:59
FmfMultiArgBase()
Definition: FmfMultiArgBase.C:21
virtual double getValueNoRecursion(double x, int &ierr) const =0
virtual bool initGetValueNoRecursion()=0
virtual ~FmfMultiArgBase()
Definition: FmfMultiArgBase.H:28
virtual bool cloneLocal(FmBase *obj, int depth)
Clones the data fields of *obj into *this.
Definition: FmfMultiArgBase.C:84