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
contact_properties_extensions.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DECLARE_HAS_THIS_TYPE_PROPERTIES
 
#define DECLARE_HAS_THIS_TYPE_PROPERTIES_PYTHON(TClassName)    .def_static("HasProperty", &TClassName::HasProperty< Variable< TClassName > >)
 
#define DECLARE_HAS_THIS_TYPE_PROPERTIES_PYTHON_AS_POINTER(TClassName)    .def_static("HasProperty", &TClassName::HasProperty< Variable< TClassName::Pointer > >)
 
#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 > >)

◆ DECLARE_HAS_THIS_TYPE_PROPERTIES

#define DECLARE_HAS_THIS_TYPE_PROPERTIES
Value:
template<class TVariable> \
static bool HasProperty(TVariable const& rV, Properties::Pointer& p) \
{ \
return p->Has(rV); \
}

◆ DECLARE_HAS_THIS_TYPE_PROPERTIES_PYTHON

#define DECLARE_HAS_THIS_TYPE_PROPERTIES_PYTHON (   TClassName)     .def_static("HasProperty", &TClassName::HasProperty< Variable< TClassName > >)

◆ DECLARE_HAS_THIS_TYPE_PROPERTIES_PYTHON_AS_POINTER

#define DECLARE_HAS_THIS_TYPE_PROPERTIES_PYTHON_AS_POINTER (   TClassName)     .def_static("HasProperty", &TClassName::HasProperty< Variable< TClassName::Pointer > >)