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