|
Programmierpraktikum NPDGL I
|
Default implementation for a Dof vector storage using POD-Type arrays of Traits::FieldType types.
Mehr ...
#include <dofvector.hh>


Öffentliche Typen | |
| typedef Traits::FieldType | FieldType |
Underlying field type stored by the Dof vector, this is usually a double. | |
| typedef Traits::Type | ThisType |
type of the actual Dof vector implementation | |
| typedef Traits::RealStorageType | RealStorageType |
| the acutal storage type used by this Dof vector, like std::vector e.g. | |
Öffentliche Methoden | |
| DefaultDofVector (const Grid &grid) | |
| initialize dof vector of size grid.npoints() | |
| DefaultDofVector (const DefaultDofVector &other) | |
| copy constructor | |
| ThisType & | operator= (const ThisType &other) |
| assignment operator for Dof vectors | |
| FieldType & | operator[] (unsigned int index) |
| Dof vector access. | |
| const FieldType & | operator[] (unsigned int index) const |
| constant Dof vector access | |
| ThisType & | operator*= (FieldType scalar_) |
| multiplies each component with a scalar value | |
| ThisType & | operator+= (const ThisType &addend) |
| adds to each component of the Dof vector the component of another Dof vector | |
Default implementation for a Dof vector storage using POD-Type arrays of Traits::FieldType types.
| Traits | This type needs to be a specialization of the class template DefaultDofVectorTraits |
| ThisType& DefaultDofVector< Traits >::operator*= | ( | FieldType | scalar | ) | [inline] |
multiplies each component with a scalar value
| scalar | the scalar each component is multiplied with |
Erneute Implementation von DofVectorInterface< Traits >.
| ThisType& DefaultDofVector< Traits >::operator+= | ( | const ThisType & | addend | ) | [inline] |
adds to each component of the Dof vector the component of another Dof vector
| addend | the Dof vector that shall be added to the current one. |
Erneute Implementation von DofVectorInterface< Traits >.
| ThisType& DefaultDofVector< Traits >::operator= | ( | const ThisType & | other | ) | [inline] |
assignment operator for Dof vectors
A Dof vector need to overload the assignment operator
| other | The other Dof vector |
Erneute Implementation von DofVectorInterface< Traits >.
| const FieldType& DefaultDofVector< Traits >::operator[] | ( | unsigned int | index | ) | const [inline] |
constant Dof vector access
This function accesses a Dof vector component
| index | index of the Dof vector component that shall be accessed |
Erneute Implementation von DofVectorInterface< Traits >.
| FieldType& DefaultDofVector< Traits >::operator[] | ( | unsigned int | index | ) | [inline] |
Dof vector access.
This function accesses a Dof vector component
| index | index of the Dof vector component that shall be accessed |
Erneute Implementation von DofVectorInterface< Traits >.
1.7.3