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.
|
Wrapper for a function which behaves like an arithmetic type. More...
#include <indirect_scalar.h>
Public Member Functions | |
IndirectScalar () | |
IndirectScalar (std::function< void(T)> set, std::function< T()> get) | |
IndirectScalar< T, S > & | operator= (const T value) |
IndirectScalar< T, S > & | operator+= (const T value) |
IndirectScalar< T, S > & | operator-= (const T value) |
IndirectScalar< T, S > & | operator*= (const T value) |
IndirectScalar< T, S > & | operator/= (const T value) |
operator T () const | |
std::ostream & | print (std::ostream &os) const |
Friends | |
class | Serializer |
Wrapper for a function which behaves like an arithmetic type.
Example: std::array<double, 3> a = {1.0, 2.0, 3.0}; auto fget = [&a]() -> double { return a[1]; }; auto fset = [&a](double d) { a[1] = d; }; IndirectScalar<double> f{fset, fget}; std::cout << f << std::endl; f = 0.0; std::cout << f << std::endl;
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |