Go to the documentation of this file.
20 #ifndef LIBMESH_PARAMETER_POINTER_H
21 #define LIBMESH_PARAMETER_POINTER_H
25 #include "libmesh/libmesh_common.h"
26 #include "libmesh/parameter_accessor.h"
27 #include "libmesh/auto_ptr.h"
44 template <
typename T=Number>
55 virtual void set (
const T & new_value)
override
61 virtual const T &
get ()
const override
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
Accessor object allowing reading and modification of the independent variables in a parameter sensiti...
The libMesh namespace provides an interface to certain functionality in the library.
virtual const T & get() const override
Getter: get the value of the parameter we access.
virtual std::unique_ptr< ParameterAccessor< T > > clone() const override
ParameterPointer(T *param_ptr)
Constructor: take the raw pointer to the parameter.
virtual void set(const T &new_value) override
Setter: change the value of the parameter we access.
virtual ParameterAccessor< T > & operator=(T *new_ptr) override
Reseater: change the location of the parameter we access.
Accessor object allowing reading and modification of the independent variables in a parameter sensiti...