Programmierpraktikum NPDGL I
Öffentliche Typen | Öffentliche Methoden

DefaultDofVector< Traits > Template-Klassenreferenz

Default implementation for a Dof vector storage using POD-Type arrays of Traits::FieldType types. Mehr ...

#include <dofvector.hh>

Klassendiagramm für DefaultDofVector< Traits >:
Inheritance graph
[Legende]
Zusammengehörigkeiten von DefaultDofVector< Traits >:
Collaboration graph
[Legende]

Aufstellung aller Elemente

Ö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
ThisTypeoperator= (const ThisType &other)
 assignment operator for Dof vectors
FieldTypeoperator[] (unsigned int index)
 Dof vector access.
const FieldTypeoperator[] (unsigned int index) const
 constant Dof vector access
ThisTypeoperator*= (FieldType scalar_)
 multiplies each component with a scalar value
ThisTypeoperator+= (const ThisType &addend)
 adds to each component of the Dof vector the component of another Dof vector

Ausführliche Beschreibung

template<class Traits>
class DefaultDofVector< Traits >

Default implementation for a Dof vector storage using POD-Type arrays of Traits::FieldType types.

Template Parameters:
TraitsThis type needs to be a specialization of the class template DefaultDofVectorTraits
Beispiele:

test_projection.cc und test_spaceoperator.cc.


Dokumentation der Elementfunktionen

template<class Traits >
ThisType& DefaultDofVector< Traits >::operator*= ( FieldType  scalar) [inline]

multiplies each component with a scalar value

Parameter:
scalarthe scalar each component is multiplied with
Rückgabe:
a reference to the dereferenced this pointer

Erneute Implementation von DofVectorInterface< Traits >.

template<class Traits >
ThisType& DefaultDofVector< Traits >::operator+= ( const ThisType addend) [inline]

adds to each component of the Dof vector the component of another Dof vector

Parameter:
addendthe Dof vector that shall be added to the current one.
Rückgabe:
a reference to the dereferenced this pointer

Erneute Implementation von DofVectorInterface< Traits >.

template<class Traits >
ThisType& DefaultDofVector< Traits >::operator= ( const ThisType other) [inline]

assignment operator for Dof vectors

A Dof vector need to overload the assignment operator

Parameter:
otherThe other Dof vector
Rückgabe:
a reference to the dereferenced this pointer

Erneute Implementation von DofVectorInterface< Traits >.

template<class Traits >
const FieldType& DefaultDofVector< Traits >::operator[] ( unsigned int  index) const [inline]

constant Dof vector access

This function accesses a Dof vector component

Parameter:
indexindex of the Dof vector component that shall be accessed
Rückgabe:
a const reference to the Dof vector component

Erneute Implementation von DofVectorInterface< Traits >.

template<class Traits >
FieldType& DefaultDofVector< Traits >::operator[] ( unsigned int  index) [inline]

Dof vector access.

This function accesses a Dof vector component

Parameter:
indexindex of the Dof vector component that shall be accessed
Rückgabe:
a reference to the Dof vector component

Erneute Implementation von DofVectorInterface< Traits >.


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: