Go to the documentation of this file.
20 #ifndef LIBMESH_PARAMETER_VECTOR_H
21 #define LIBMESH_PARAMETER_VECTOR_H
25 #include "libmesh/libmesh_common.h"
26 #include "libmesh/parameter_accessor.h"
97 void resize(std::size_t s);
142 std::vector<ParameterAccessor<Number> *>
_params;
188 _params.push_back(new_accessor.release());
196 libmesh_assert_greater (
_params.size(), i);
206 libmesh_assert_greater (
_params.size(), i);
213 #endif // LIBMESH_PARAMETER_VECTOR_H
Accessor object allowing reading and modification of the independent variables in a parameter sensiti...
ParameterVector & operator+=(const ParameterVector &a)
Addition operator.
ParameterVector()
Default constructor: "no parameters".
void push_back(std::unique_ptr< ParameterAccessor< Number >> new_accessor)
Adds an additional parameter accessor to the end of the vector.
The libMesh namespace provides an interface to certain functionality in the library.
std::vector< Number > _my_data
Parameters which I own; e.g.
void value_copy(ParameterVector &target) const
Value copy method: the target, which should already have as many parameters as I do,...
void deep_resize(std::size_t s)
Sets the number of parameters to be used.
std::vector< ParameterAccessor< Number > * > _params
Pointers to parameters which may exist elsewhere.
void resize(std::size_t s)
Sets the number of parameters to be used.
const ParameterAccessor< Number > & operator[](std::size_t i) const
Data structure for specifying which Parameters should be independent variables in a parameter sensiti...
void shallow_copy(ParameterVector &target) const
Shallow copy constructor: the target will now point to all the parameter values I'm pointing to.
void clear()
Resets to "no parameters".
~ParameterVector()
Destructor - deletes ParameterAccessor objects.
void deep_copy(ParameterVector &target) const
Deep copy constructor: the target will now own new copies of all the parameter values I'm pointing to...
bool _is_shallow_copy
Am I a shallow copy? If so then I shouldn't be deleting my ParameterAccessors.
ParameterVector & operator*=(const Number a)
Multiplication operator; acts individually on each parameter.