Dune::fvector_assigner< T, s > Class Template Reference
[Common]

#include <fassign.hh>

List of all members.


Detailed Description

template<class T, int s>
class Dune::fvector_assigner< T, s >

fvector assignment operator

overload operator <<= for fvector assignment from Dune::Zero

after including fassing.hh you can easily assign data to a FieldVector using

  FieldVector<double, 4> x; x <<= 1.0, 4.0, 10.0, 11.0;

The operator checks that the whole vector is initalized. In case you know that all following entries will be zero padded, you can use

  FieldVector<double, 40> x; x <<= 1.0, 4.0, 10.0, 11.0, zero;

Public Member Functions

 fvector_assigner (fvector_assigner &a)
 Copy Constructor.
 fvector_assigner (FieldVector< T, s > &_v, bool t)
 Constructor from vector and temporary flag.
 ~fvector_assigner ()
 Destructor checks for complete initialization of the vector. The check is skipped, if this object is marked temporary.
fvector_assignerappend (const T &t)
 append data to this vector
fvector_assignerappend (Zero z)
 append zeros to this vector
fvector_assigneroperator, (const T &t)
 append data to this vector the overloaded comma operator is used to assign a comma seperated list of values to the vector
fvector_assigneroperator, (Zero z)
 append zeros to this vector the overloaded comma operator is used to stop the assign of values to the vector, all remaining entries are assigned 0.

The documentation for this class was generated from the following file:

Generated on Thu Apr 2 10:39:54 2009 for dune-common by  doxygen 1.5.6