20 #ifndef LIBMESH_PARAMETER_MULTIPOINTER_H 21 #define LIBMESH_PARAMETER_MULTIPOINTER_H 25 #include "libmesh/libmesh_common.h" 26 #include "libmesh/parameter_accessor.h" 46 template <
typename T=Number>
63 virtual void set (
const T & new_value)
override 68 const T & val = *
_ptrs.back();
70 for (
auto & ptr :
_ptrs)
74 libmesh_assert_equal_to(*ptr, val);
82 virtual const T &
get ()
const override 89 for (
auto ptr :
_ptrs)
90 libmesh_assert_equal_to(*ptr, val);
98 virtual std::unique_ptr<ParameterAccessor<T>>
clone()
const override 100 auto pmp = std::make_unique<ParameterMultiPointer<T>>();
119 #endif // LIBMESH_PARAMETER_MULTIPOINTER_H
ParameterMultiPointer(T *param_ptr)
Constructor: take the first raw pointer to the parameter.
void push_back(T *new_ptr)
The libMesh namespace provides an interface to certain functionality in the library.
Accessor object allowing reading and modification of the independent variables in a parameter sensiti...
virtual std::unique_ptr< ParameterAccessor< T > > clone() const override
ParameterMultiPointer()
Constructor: no parameters attached yet.
Accessor object allowing reading and modification of the independent variables in a parameter sensiti...