KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
Macros
properties_extensions.hpp File Reference

Go to the source code of this file.

Macros

#define DECLARE_ADD_THIS_TYPE_TO_PROPERTIES
 
#define DECLARE_ADD_THIS_TYPE_TO_PROPERTIES_PYTHON(TClassName)    .def_static("AddToProperties", &TClassName::AddToProperties< Variable< TClassName > >)
 
#define DECLARE_ADD_THIS_TYPE_TO_PROPERTIES_PYTHON_AS_POINTER(TClassName)    .def_static("AddToProperties", &TClassName::AddToProperties< Variable< TClassName::Pointer > >)
 
#define DECLARE_GET_THIS_TYPE_FROM_PROPERTIES
 
#define DECLARE_GET_THIS_TYPE_FROM_PROPERTIES_PYTHON(TClassName)    .def_static("GetFromProperties", &TClassName::GetFromProperties< Variable< TClassName > >)
 
#define DECLARE_GET_THIS_TYPE_FROM_PROPERTIES_PYTHON_AS_POINTER(TClassName)    .def_static("GetFromProperties", &TClassName::GetFromProperties< Variable< TClassName::Pointer > >)
 

Macro Definition Documentation

◆ DECLARE_ADD_THIS_TYPE_TO_PROPERTIES

#define DECLARE_ADD_THIS_TYPE_TO_PROPERTIES
Value:
template<class TVariable> \
static void AddToProperties(TVariable const& rV, typename TVariable::Type const& rValue, Properties::Pointer& p) \
{ \
p->SetValue(rV, rValue); \
}
p
Definition: sensitivityMatrix.py:52

◆ DECLARE_ADD_THIS_TYPE_TO_PROPERTIES_PYTHON

#define DECLARE_ADD_THIS_TYPE_TO_PROPERTIES_PYTHON (   TClassName)     .def_static("AddToProperties", &TClassName::AddToProperties< Variable< TClassName > >)

◆ DECLARE_ADD_THIS_TYPE_TO_PROPERTIES_PYTHON_AS_POINTER

#define DECLARE_ADD_THIS_TYPE_TO_PROPERTIES_PYTHON_AS_POINTER (   TClassName)     .def_static("AddToProperties", &TClassName::AddToProperties< Variable< TClassName::Pointer > >)

◆ DECLARE_GET_THIS_TYPE_FROM_PROPERTIES

#define DECLARE_GET_THIS_TYPE_FROM_PROPERTIES
Value:
template<class TVariable> \
static typename TVariable::Type GetFromProperties(TVariable const& rV, Properties::Pointer& p) \
{ \
return p->GetValue(rV); \
}

◆ DECLARE_GET_THIS_TYPE_FROM_PROPERTIES_PYTHON

#define DECLARE_GET_THIS_TYPE_FROM_PROPERTIES_PYTHON (   TClassName)     .def_static("GetFromProperties", &TClassName::GetFromProperties< Variable< TClassName > >)

◆ DECLARE_GET_THIS_TYPE_FROM_PROPERTIES_PYTHON_AS_POINTER

#define DECLARE_GET_THIS_TYPE_FROM_PROPERTIES_PYTHON_AS_POINTER (   TClassName)     .def_static("GetFromProperties", &TClassName::GetFromProperties< Variable< TClassName::Pointer > >)