20 #ifndef LIBMESH_PARAMETER_POINTER_H 21 #define LIBMESH_PARAMETER_POINTER_H 44 template <
typename T=Number>
55 virtual void set (
const T & new_value)
override 56 { libmesh_assert(
_ptr); *
_ptr = new_value; }
61 virtual const T &
get ()
const override 62 { libmesh_assert(
_ptr);
return *
_ptr; }
70 #ifdef LIBMESH_ENABLE_DEPRECATED 83 virtual std::unique_ptr<ParameterAccessor<T>>
clone()
const override 85 return libmesh_make_unique<ParameterPointer<T>>(
_ptr);
94 #endif // LIBMESH_PARAMETER_POINTER_H ParameterPointer(T *param_ptr)
Stores/modifies a user-provided pointer to a parameter.
virtual ParameterAccessor< T > & operator=(T *new_ptr) override
virtual std::unique_ptr< ParameterAccessor< T > > clone() const override
Base class for reading/writing sensitivity parameters.