FEDEM Model Database  R8.0
Source code of the FEDEM model database
Classes | Macros
FmParamObjectBase.H File Reference
#include "vpmDB/FmSimulationModelBase.H"
Include dependency graph for FmParamObjectBase.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FmParameter
 
class  FmParamObjectBase
 

Macros

#define M_MOD_PARAMS(VAR_BASE, CL_TYPE)
 
#define M_APPEND_PARAMS(NAME, VAR_BASE, CL_TYPE, ARRAY)    ARRAY.push_back(FmParameter(NAME,CL_TYPE::s_set##VAR_BASE,CL_TYPE::s_get##VAR_BASE))
 

Macro Definition Documentation

◆ M_APPEND_PARAMS

#define M_APPEND_PARAMS (   NAME,
  VAR_BASE,
  CL_TYPE,
  ARRAY 
)     ARRAY.push_back(FmParameter(NAME,CL_TYPE::s_set##VAR_BASE,CL_TYPE::s_get##VAR_BASE))

◆ M_MOD_PARAMS

#define M_MOD_PARAMS (   VAR_BASE,
  CL_TYPE 
)
Value:
public: \
double get##VAR_BASE() const { return my##VAR_BASE.getValue(); } \
void set##VAR_BASE(double var) { my##VAR_BASE.setValue(var); } \
static void s_set##VAR_BASE(FmParamObjectBase* obj, double var) \
{ ((CL_TYPE*)obj)->set##VAR_BASE(var); } \
static double s_get##VAR_BASE(FmParamObjectBase* obj) \
{ return ((CL_TYPE*)obj)->get##VAR_BASE(); } \
protected: \
FFaField<double> my##VAR_BASE
Definition: FmParamObjectBase.H:36