dune-fem
2.4.1-rc
|
implementation of VectorInterface using a C++ array embedded info the class to provide the fields More...
#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/storage/vector.hh>
Public Types | |
typedef FieldImp | FieldType |
field type of vector More... | |
typedef BaseType::VectorInterfaceType | VectorInterfaceType |
typedef BaseType::VectorType | VectorType |
typedef BaseType::ConstIteratorType | ConstIteratorType |
typedef BaseType::IteratorType | IteratorType |
typedef VectorDefaultTraits< FieldImp, StaticVector< FieldImp, sz > > | Traits |
typedef FieldType | value_type |
typedef Traits::ArrayType | ArrayType |
type of the implementation (Barton-Nackman) More... | |
typedef ThisType | ArrayInterfaceType |
type of this interface More... | |
typedef Traits::ElementType | ElementType |
type of the array elements More... | |
typedef ConstIteratorType | const_iterator |
type of constant iterator More... | |
typedef IteratorType | iterator |
type of (non-constant) iterator More... | |
typedef unsigned int | size_type |
type of unsigned integral type of indexing More... | |
Public Member Functions | |
StaticVector () | |
Constructor setting up an uninitialized vector. More... | |
StaticVector (const FieldType s) | |
Constructor setting up a vector initialized to a constant value. More... | |
template<class T > | |
StaticVector (const VectorInterface< T > &v) | |
Copy constructor setting up a vector with the data of another one. More... | |
StaticVector (const ThisType &v) | |
Copy constructor setting up a vector with the data of another one. More... | |
template<class T > | |
ThisType & | operator= (const VectorInterface< T > &v) |
Assign another vector to this one. More... | |
ThisType & | operator= (const ThisType &v) |
Assign another vector to this one. More... | |
ThisType & | operator= (const FieldType s) |
Initialize all fields of this vector with a scalar. More... | |
const FieldType & | operator[] (unsigned int index) const |
FieldType & | operator[] (unsigned int index) |
unsigned int | size () const |
VectorType & | operator+= (const VectorInterface< T > &v) |
Add another vector to this one. More... | |
VectorType & | operator-= (const VectorInterface< T > &v) |
Subtract another vector from this one. More... | |
VectorType & | operator*= (const FieldType s) |
Multiply this vector by a scalar. More... | |
VectorType & | addScaled (const FieldType s, const VectorInterface< T > &v) |
Add a multiple of another vector to this one. More... | |
void | assign (const VectorInterface< T > &v) |
copy another vector to this one More... | |
void | assign (const FieldType s) |
Initialize all fields of this vector with a scalar. More... | |
void | assign (const ElementType &element) |
fill the array with copies of an element More... | |
void | assign (const ArrayInterface< T > &other) |
copy another array to this one More... | |
void | clear () |
initialize the vector to 0 More... | |
ConstIteratorType | begin () const |
obtain begin iterator More... | |
IteratorType | begin () |
obtain begin iterator More... | |
ConstIteratorType | end () const |
obtain end iterator More... | |
IteratorType | end () |
obtain end iterator More... | |
Protected Member Functions | |
const VectorInterfaceArrayTraits< VectorDefaultTraits< FieldImp, StaticVector< FieldImp, sz > > >::ArrayType & | asImp () const |
VectorInterfaceArrayTraits< VectorDefaultTraits< FieldImp, StaticVector< FieldImp, sz > > >::ArrayType & | asImp () |
Static Protected Member Functions | |
static const VectorInterfaceArrayTraits< VectorDefaultTraits< FieldImp, StaticVector< FieldImp, sz > > >::ArrayType & | asImp (const ThisType &other) |
static VectorInterfaceArrayTraits< VectorDefaultTraits< FieldImp, StaticVector< FieldImp, sz > > >::ArrayType & | asImp (ThisType &other) |
Protected Attributes | |
FieldType | fields_ [sz] |
The actual vector fields. More... | |
implementation of VectorInterface using a C++ array embedded info the class to provide the fields
|
inherited |
type of this interface
|
inherited |
type of the implementation (Barton-Nackman)
|
inherited |
type of constant iterator
|
inherited |
|
inherited |
type of the array elements
typedef FieldImp Dune::Fem::StaticVector< FieldImp, sz >::FieldType |
field type of vector
|
inherited |
type of (non-constant) iterator
|
inherited |
|
inherited |
type of unsigned integral type of indexing
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inline |
Constructor setting up an uninitialized vector.
|
inlineexplicit |
Constructor setting up a vector initialized to a constant value.
|
inline |
Copy constructor setting up a vector with the data of another one.
|
inline |
Copy constructor setting up a vector with the data of another one.
|
inlineinherited |
Add a multiple of another vector to this one.
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineinherited |
fill the array with copies of an element
[in] | element | element wich shall be copied into every array entry |
|
inlineinherited |
copy another array to this one
Copies the data from another array to this one. Both arrays must be of the same size.
[in] | other | array to copy |
|
inlineinherited |
copy another vector to this one
Copies the data from another vector to this one. Both vectors must be of the same size.
[in] | v | vector to copy |
|
inlineinherited |
Initialize all fields of this vector with a scalar.
|
inlineinherited |
obtain begin iterator
|
inlineinherited |
obtain begin iterator
|
inlineinherited |
initialize the vector to 0
|
inlineinherited |
obtain end iterator
|
inlineinherited |
obtain end iterator
|
inlineinherited |
Multiply this vector by a scalar.
|
inlineinherited |
Add another vector to this one.
|
inlineinherited |
Subtract another vector from this one.
|
inline |
Assign another vector to this one.
|
inline |
Assign another vector to this one.
|
inline |
Initialize all fields of this vector with a scalar.
|
inline |
|
inline |
|
inline |
|
protected |
The actual vector fields.