20 #ifndef LIBMESH_PARSED_FUNCTION_PARAMETER_H 21 #define LIBMESH_PARSED_FUNCTION_PARAMETER_H 25 #include "libmesh/libmesh_common.h" 26 #include "libmesh/parameter_accessor.h" 27 #include "libmesh/parsed_function.h" 47 template <
typename T=Number>
63 std::string param_name) :
75 virtual void set (
const T & new_value)
override {
82 virtual const T &
get ()
const override {
90 virtual std::unique_ptr<ParameterAccessor<T>>
clone()
const override {
91 return std::make_unique<ParsedFunctionParameter<T>>(
_func,
_name);
106 #endif // LIBMESH_PARSED_FUNCTION_PARAMETER_H void set_inline_value(std::string_view inline_var_name, Output newval)
Changes the value of an inline variable.
Output get_inline_value(std::string_view inline_var_name) const
Accessor object allowing reading and modification of the independent variables in a parameter sensiti...
ParsedFunctionParameter(ParsedFunction< T > &func_ref, std::string param_name)
Constructor: take the function to be modified and the name of the inline variable within it which rep...
The libMesh namespace provides an interface to certain functionality in the library.
libMesh::Number _current_val
virtual ParameterAccessor< T > & operator=(T *)
A simple reseater won't work with a parsed function.
ParsedFunction< T > & _func
virtual std::unique_ptr< ParameterAccessor< T > > clone() const override
Accessor object allowing reading and modification of the independent variables in a parameter sensiti...