| 
    libMesh
    
   | 
 
Accessor object allowing reading and modification of the independent variables in a parameter sensitivity calculation. More...
#include <parameter_pointer.h>
Public Member Functions | |
| ParameterPointer (T *param_ptr) | |
| Constructor: take the raw pointer to the parameter.  More... | |
| virtual void | set (const T &new_value) override | 
| Setter: change the value of the parameter we access.  More... | |
| virtual const T & | get () const override | 
| Getter: get the value of the parameter we access.  More... | |
| virtual ParameterAccessor< T > & | operator= (T *new_ptr) override | 
| Reseater: change the location of the parameter we access.  More... | |
| virtual std::unique_ptr< ParameterAccessor< T > > | clone () const override | 
| ParameterProxy< T > | operator* () | 
| Proxy: for backward compatibility, we allow codes to treat a ParameterAccessor as if it were a simple pointer-to-value.  More... | |
| ConstParameterProxy< T > | operator* () const | 
Private Attributes | |
| T * | _ptr | 
Accessor object allowing reading and modification of the independent variables in a parameter sensitivity calculation.
This is the "default" ParameterAccessor subclass: it simply stores a user-provided pointer to the parameter, and modifies the value at that location in memory.
Stores/modifies a user-provided pointer to a parameter.
Definition at line 45 of file parameter_pointer.h.
      
  | 
  inline | 
Constructor: take the raw pointer to the parameter.
Definition at line 51 of file parameter_pointer.h.
      
  | 
  inlineoverridevirtual | 
Implements libMesh::ParameterAccessor< T >.
Definition at line 83 of file parameter_pointer.h.
References libMesh::ParameterPointer< T >::_ptr.
      
  | 
  inlineoverridevirtual | 
Getter: get the value of the parameter we access.
Implements libMesh::ParameterAccessor< T >.
Definition at line 61 of file parameter_pointer.h.
References libMesh::ParameterPointer< T >::_ptr, and libMesh::libmesh_assert().
      
  | 
  inlineinherited | 
Proxy: for backward compatibility, we allow codes to treat a ParameterAccessor as if it were a simple pointer-to-value.
We can't safely allow "Number * n = parameter_vector[p]" to compile, but we can allow "*parameter_vector[p] += deltap" to work.
Definition at line 90 of file parameter_accessor.h.
      
  | 
  inlineinherited | 
Definition at line 92 of file parameter_accessor.h.
      
  | 
  inlineoverridevirtual | 
Reseater: change the location of the parameter we access.
Reimplemented from libMesh::ParameterAccessor< T >.
Definition at line 72 of file parameter_pointer.h.
References libMesh::ParameterPointer< T >::_ptr.
      
  | 
  inlineoverridevirtual | 
Setter: change the value of the parameter we access.
Implements libMesh::ParameterAccessor< T >.
Definition at line 55 of file parameter_pointer.h.
References libMesh::ParameterPointer< T >::_ptr, and libMesh::libmesh_assert().
      
  | 
  private | 
Definition at line 89 of file parameter_pointer.h.
Referenced by libMesh::ParameterPointer< T >::clone(), libMesh::ParameterPointer< T >::get(), libMesh::ParameterPointer< T >::operator=(), and libMesh::ParameterPointer< T >::set().
 1.8.16