17 #include <pybind11/pybind11.h>
27 namespace py = pybind11;
50 template<
class TContainerType,
class TVariableType>
81 template <
class TClassType>
82 void visit(TClassType& ThisClass)
const
129 static void DataValueContainerSetValue(TContainerType& rData, TVariableType
const& rV,
typename TVariableType::Type
const& rValue)
131 rData.SetValue(rV, rValue);
134 static typename TVariableType::Type DataValueContainerGetValue(TContainerType
const& rData, TVariableType
const& rV)
136 return rData.GetValue(rV);
140 static typename TVariableType::Type
const& DataValueContainerGetReference(TContainerType
const& rData, TVariableType
const& rV)
142 return rData.GetValue(rV);
150 static bool DataValueContainerHas(TContainerType
const& rData, TVariableType
const& rV)
152 return rData.Has(rV);
Short class definition.
Definition: variable_indexing_python.h:52
VariableIndexingPython(const VariableIndexingPython &rOther)
Copy constructor.
virtual ~VariableIndexingPython()
Destructor.
Definition: variable_indexing_python.h:71
KRATOS_CLASS_POINTER_DEFINITION(VariableIndexingPython)
Pointer definition of VariableIndexingPython.
void visit(TClassType &ThisClass) const
Definition: variable_indexing_python.h:82
VariableIndexingPython()
Default constructor.
Definition: variable_indexing_python.h:65
Definition: add_distributed_sparse_matrices_to_python.cpp:28