dune-fem
2.4.1-rc
|
An abstract vector interface. More...
#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/storage/vector.hh>
Public Types | |
typedef VT | Traits |
typedef ThisType | VectorInterfaceType |
type of this interface More... | |
typedef Traits::VectorType | VectorType |
type of the implementation (Barton-Nackman) More... | |
typedef Traits::FieldType | FieldType |
field type for the vector More... | |
typedef FieldType | value_type |
typedef Traits::ConstIteratorType | ConstIteratorType |
type of constant iterator More... | |
typedef Traits::IteratorType | IteratorType |
type of iterator More... | |
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) |
Assign another vector to this one. More... | |
VectorType & | operator= (const ThisType &v) |
Assign another vector to this one. More... | |
VectorType & | operator= (const FieldType s) |
Initialize all fields of this vector with a scalar. 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... | |
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... | |
unsigned int | size () const |
Returns the vector's size. More... | |
template<class T > | |
Traits::VectorType & | operator= (const VectorInterface< T > &v) |
template<class T > | |
Traits::VectorType & | operator+= (const VectorInterface< T > &v) |
template<class T > | |
Traits::VectorType & | operator-= (const VectorInterface< T > &v) |
template<class T > | |
Traits::VectorType & | addScaled (const FieldType s, const VectorInterface< T > &v) |
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... | |
Protected Member Functions | |
const VectorInterfaceArrayTraits< VT >::ArrayType & | asImp () const |
VectorInterfaceArrayTraits< VT >::ArrayType & | asImp () |
Static Protected Member Functions | |
static const VectorInterfaceArrayTraits< VT >::ArrayType & | asImp (const ThisType &other) |
static VectorInterfaceArrayTraits< VT >::ArrayType & | asImp (ThisType &other) |
Related Functions | |
(Note that these are not member functions.) | |
template<class Traits > | |
std::ostream & | operator<< (std::ostream &out, const VectorInterface< Traits > &v) |
write a vector into an STL stream More... | |
template<class Traits > | |
std::istream & | operator>> (std::istream &in, VectorInterface< Traits > &v) |
read a vector from an STL stream More... | |
An abstract vector interface.
|
inherited |
type of this interface
|
inherited |
type of the implementation (Barton-Nackman)
|
inherited |
type of constant iterator
typedef Traits::ConstIteratorType Dune::Fem::VectorInterface< VT >::ConstIteratorType |
type of constant iterator
|
inherited |
type of the array elements
typedef Traits::FieldType Dune::Fem::VectorInterface< VT >::FieldType |
field type for the vector
|
inherited |
type of (non-constant) iterator
typedef Traits::IteratorType Dune::Fem::VectorInterface< VT >::IteratorType |
type of iterator
|
inherited |
type of unsigned integral type of indexing
typedef VT Dune::Fem::VectorInterface< VT >::Traits |
typedef FieldType Dune::Fem::VectorInterface< VT >::value_type |
typedef ThisType Dune::Fem::VectorInterface< VT >::VectorInterfaceType |
type of this interface
typedef Traits::VectorType Dune::Fem::VectorInterface< VT >::VectorType |
type of the implementation (Barton-Nackman)
|
inline |
VectorType& Dune::Fem::VectorInterface< VT >::addScaled | ( | const FieldType | s, |
const VectorInterface< T > & | v | ||
) |
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 |
|
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 |
Referenced by Dune::Fem::VectorInterface< VT >::operator>>().
|
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 |
Initialize all fields of this vector with a scalar.
|
inline |
obtain begin iterator
Referenced by Dune::Fem::operator>>().
|
inline |
obtain begin iterator
|
inline |
initialize the vector to 0
|
inline |
obtain end iterator
Referenced by Dune::Fem::operator<<(), and Dune::Fem::operator>>().
|
inline |
obtain end iterator
|
inline |
Multiply this vector by a scalar.
|
inline |
VectorType& Dune::Fem::VectorInterface< VT >::operator+= | ( | const VectorInterface< T > & | v | ) |
Add another vector to this one.
|
inline |
VectorType& Dune::Fem::VectorInterface< VT >::operator-= | ( | const VectorInterface< T > & | v | ) |
Subtract another vector from this one.
|
inline |
VectorType& Dune::Fem::VectorInterface< VT >::operator= | ( | const VectorInterface< T > & | v | ) |
Assign another vector to this one.
|
inline |
Assign another vector to this one.
|
inline |
Initialize all fields of this vector with a scalar.
|
inline |
Returns a const reference to the field indexed by index.
|
inline |
Returns a reference to the field indexed by index.
|
inline |
Returns the vector's size.
Referenced by Dune::Fem::VectorDefault< BaseVectorImp::FieldType, SubVector< BaseVectorImp, IndexMapperImp > >::addScaled(), Dune::Fem::VectorDefault< BaseVectorImp::FieldType, SubVector< BaseVectorImp, IndexMapperImp > >::assign(), Dune::Fem::operator*(), Dune::Fem::VectorDefault< BaseVectorImp::FieldType, SubVector< BaseVectorImp, IndexMapperImp > >::operator+=(), Dune::Fem::VectorDefault< BaseVectorImp::FieldType, SubVector< BaseVectorImp, IndexMapperImp > >::operator-=(), Dune::Fem::VectorInterface< VT >::operator<<(), and Dune::Fem::VectorInterface< VT >::operator>>().
|
related |
write a vector into an STL stream
[in] | out | STL stream to write to |
[in] | v | vector to write |
References Dune::Fem::VectorInterface< VT >::size().
|
related |
read a vector from an STL stream
[in] | in | STL stream to read from |
[out] | v | vector to read |
References Dune::Fem::VectorInterface< VT >::assign(), Dune::Fem::match(), and Dune::Fem::VectorInterface< VT >::size().