dune-fem
2.4.1-rc
|
default implementation of VectorInterface More...
#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/storage/vector.hh>
Public Types | |
typedef BaseType::FieldType | FieldType |
typedef BaseType::VectorInterfaceType | VectorInterfaceType |
typedef BaseType::VectorType | VectorType |
typedef BaseType::ConstIteratorType | ConstIteratorType |
typedef BaseType::IteratorType | IteratorType |
typedef VectorDefaultTraits< Field, Vector > | 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 | |
template<class T > | |
VectorType & | operator+= (const VectorInterface< T > &v) |
Add another vector to this one. More... | |
template<class T > | |
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... | |
template<class T > | |
VectorType & | addScaled (const FieldType s, const VectorInterface< T > &v) |
Add a multiple of another vector to this one. More... | |
template<class T > | |
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 | 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... | |
const FieldType & | operator[] (unsigned int index) const |
Returns a const reference to the field indexed by index. More... | |
FieldType & | operator[] (unsigned int index) |
Returns a reference to the field indexed by index. 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... | |
unsigned int | size () const |
Returns the vector's size. More... | |
Protected Member Functions | |
const VectorInterfaceArrayTraits< VectorDefaultTraits< Field, Vector > >::ArrayType & | asImp () const |
VectorInterfaceArrayTraits< VectorDefaultTraits< Field, Vector > >::ArrayType & | asImp () |
Static Protected Member Functions | |
static const VectorInterfaceArrayTraits< VectorDefaultTraits< Field, Vector > >::ArrayType & | asImp (const ThisType &other) |
static VectorInterfaceArrayTraits< VectorDefaultTraits< Field, Vector > >::ArrayType & | asImp (ThisType &other) |
default implementation of VectorInterface
|
inherited |
type of this interface
|
inherited |
type of the implementation (Barton-Nackman)
|
inherited |
type of constant iterator
typedef BaseType :: ConstIteratorType Dune::Fem::VectorDefault< Field, Vector >::ConstIteratorType |
|
inherited |
type of the array elements
typedef BaseType :: FieldType Dune::Fem::VectorDefault< Field, Vector >::FieldType |
|
inherited |
type of (non-constant) iterator
typedef BaseType :: IteratorType Dune::Fem::VectorDefault< Field, Vector >::IteratorType |
|
inherited |
type of unsigned integral type of indexing
|
inherited |
|
inherited |
typedef BaseType :: VectorInterfaceType Dune::Fem::VectorDefault< Field, Vector >::VectorInterfaceType |
typedef BaseType :: VectorType Dune::Fem::VectorDefault< Field, Vector >::VectorType |
|
inline |
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 |
|
inline |
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 |
|
inline |
Initialize all fields of this vector with a scalar.
|
inline |
obtain begin iterator
|
inline |
obtain begin iterator
|
inline |
initialize the vector to 0
|
inline |
obtain end iterator
|
inline |
obtain end iterator
|
inline |
Multiply this vector by a scalar.
|
inline |
Add another vector to this one.
|
inline |
Subtract another vector from this one.
|
inherited |
Returns a const reference to the field indexed by index.
|
inherited |
Returns a reference to the field indexed by index.
|
inherited |
Returns the vector's size.