Dune::fvector_assigner< T, s > Class Template Reference
#include <fassign.hh>
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_assigner & | append (const T &t) |
append data to this vector | |
fvector_assigner & | append (Zero z) |
append zeros to this vector | |
fvector_assigner & | operator, (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_assigner & | operator, (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. |
Constructor & Destructor Documentation
template<class T, int s>
Dune::fvector_assigner< T, s >::fvector_assigner | ( | FieldVector< T, s > & | _v, | |
bool | t | |||
) | [inline] |
Constructor from vector and temporary flag.
- Parameters:
-
v vector which should be initialized t bool indicating, that this is a temporary object (see ~fvector_assigner)
The documentation for this class was generated from the following file: