6 #warning The header <dune/common/fassign.hh> is deprecated and will be removed after the\
7 release of dune-common-2.4. Please use C++11 initializer lists instead.
35 explicit Zero (
int) {};
37 operator double () {
return 0.0; }
39 operator int () {
return 0; }
72 template <
class T,
int s>
96 if (!temporary && c!=s)
98 " entries to a FieldVector of size " << s);
111 while (c!=s) v[c++] = 0;
138 template <
class T,
class K,
int s>
149 template <
class T,
int s>
175 template <
class T,
int n,
int m>
176 class fmatrix_assigner
179 FieldMatrix<T,n,m> & A;
187 if (!temporary && c!=m && !thrown) {
189 DUNE_THROW(MathError,
"Trying to assign " << c <<
190 " entries to a FieldMatrix row of size " << m);
212 if (!temporary && r!=n-1 && !thrown) {
215 " rows to a FieldMatrix of size " << n <<
" x " << m);
225 " rows to a FieldMatrix of size " << n <<
" x " << m);
235 while (c!=m) A[r][c++] = 0;
280 template <
class T,
class K,
int n,
int m>
291 template <
class T,
int n,
int m>
299 #endif // DUNE_ASSIGN_HH
NextRow(int)
Definition: fassign.hh:172
~fvector_assigner()
Destructor checks for complete initialization of the vector. The check is skipped, if this object is marked temporary.
Definition: fassign.hh:94
fvector assignment operator
Definition: fassign.hh:73
struct Dune::FloatCmp::EpsilonType nextRow
Zero(int)
Definition: fassign.hh:172
~fmatrix_assigner()
Destructor checks for complete initialization of the matrix. The check is skipped, if this object is marked temporary.
Definition: fassign.hh:209
fmatrix_assigner & append(NextRow nr)
move to next row of the matrix
Definition: fassign.hh:240
fmatrix assignment operator
Definition: fassign.hh:176
fmatrix_assigner(fmatrix_assigner &a)
Copy Constructor.
Definition: fassign.hh:196
fmatrix_assigner(FieldMatrix< T, n, m > &_A, bool t)
Constructor from matrix and temporary flag.
Definition: fassign.hh:202
fvector_assigner & operator,(const T &t)
append data to this vector the overloaded comma operator is used to assign a comma separated list of ...
Definition: fassign.hh:118
T t
Definition: alignment.hh:34
Definition of the DUNE_UNUSED macro for the case that config.h is not available.
Default exception class for mathematical errors.
Definition: exceptions.hh:266
Implements a vector constructed from a given type representing a field and a compile-time given size...
fvector_assigner(fvector_assigner &a)
Copy Constructor.
Definition: fassign.hh:82
#define DUNE_UNUSED_PARAMETER(parm)
A macro to mark intentional unused function parameters with.
Definition: unused.hh:18
fvector_assigner & append(Zero z)
append zeros to this vector
Definition: fassign.hh:108
fvector_assigner & append(const T &t)
append data to this vector
Definition: fassign.hh:101
Implements a matrix constructed from a given type representing a field and compile-time given number ...
fmatrix_assigner & append(const T &t)
append data to this matrix
Definition: fassign.hh:219
fmatrix_assigner & append(Zero z)
append zeros to this matrix
Definition: fassign.hh:232
fmatrix_assigner & operator,(const T &t)
append data to this matrix the overloaded comma operator is used to assign a comma separated list of ...
Definition: fassign.hh:251
#define DUNE_THROW(E, m)
Definition: exceptions.hh:243
fvector_assigner(FieldVector< T, s > &_v, bool t)
Constructor from vector and temporary flag.
Definition: fassign.hh:88