dune-fem  2.4.1-rc
Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Dune::Fem::CombinedVector< Vector1Type, Vector2Type > Class Template Reference

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/storage/vector.hh>

Inheritance diagram for Dune::Fem::CombinedVector< Vector1Type, Vector2Type >:
Inheritance graph

Public Types

typedef ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType FieldType
 
typedef BaseType::VectorInterfaceType VectorInterfaceType
 
typedef BaseType::VectorType VectorType
 
typedef BaseType::ConstIteratorType ConstIteratorType
 
typedef BaseType::IteratorType IteratorType
 
typedef VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > 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

 CombinedVector (Vector1Type &v1, Vector2Type &v2)
 
const FieldTypeoperator[] (unsigned int index) const
 
FieldTypeoperator[] (unsigned int index)
 
unsigned int size () const
 
VectorTypeoperator+= (const VectorInterface< T > &v)
 Add another vector to this one. More...
 
VectorTypeoperator-= (const VectorInterface< T > &v)
 Subtract another vector from this one. More...
 
VectorTypeoperator*= (const FieldType s)
 Multiply this vector by a scalar. More...
 
VectorTypeaddScaled (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< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > >::ArrayTypeasImp () const
 
VectorInterfaceArrayTraits< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > >::ArrayTypeasImp ()
 

Static Protected Member Functions

static const VectorInterfaceArrayTraits< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > >::ArrayTypeasImp (const ThisType &other)
 
static VectorInterfaceArrayTraits< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > >::ArrayTypeasImp (ThisType &other)
 

Protected Attributes

Vector1Type & vector1_
 
Vector2Type & vector2_
 

Member Typedef Documentation

typedef ThisType Dune::Fem::ArrayInterface< VectorInterfaceArrayTraits< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > > >::ArrayInterfaceType
inherited

type of this interface

typedef Traits::ArrayType Dune::Fem::ArrayInterface< VectorInterfaceArrayTraits< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > > >::ArrayType
inherited

type of the implementation (Barton-Nackman)

type of constant iterator

typedef BaseType :: ConstIteratorType Dune::Fem::VectorDefault< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType , CombinedVector< Vector1Type, Vector2Type > >::ConstIteratorType
inherited

type of the array elements

template<class Vector1Type , class Vector2Type >
typedef ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType Dune::Fem::CombinedVector< Vector1Type, Vector2Type >::FieldType
typedef IteratorType Dune::Fem::ArrayInterface< VectorInterfaceArrayTraits< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > > >::iterator
inherited

type of (non-constant) iterator

typedef BaseType :: IteratorType Dune::Fem::VectorDefault< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType , CombinedVector< Vector1Type, Vector2Type > >::IteratorType
inherited
typedef unsigned int Dune::Fem::ArrayInterface< VectorInterfaceArrayTraits< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > > >::size_type
inherited

type of unsigned integral type of indexing

typedef VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > Dune::Fem::VectorInterface< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > >::Traits
inherited
typedef FieldType Dune::Fem::VectorInterface< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > >::value_type
inherited
typedef BaseType :: VectorInterfaceType Dune::Fem::VectorDefault< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType , CombinedVector< Vector1Type, Vector2Type > >::VectorInterfaceType
inherited
typedef BaseType :: VectorType Dune::Fem::VectorDefault< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType , CombinedVector< Vector1Type, Vector2Type > >::VectorType
inherited

Constructor & Destructor Documentation

template<class Vector1Type , class Vector2Type >
Dune::Fem::CombinedVector< Vector1Type, Vector2Type >::CombinedVector ( Vector1Type &  v1,
Vector2Type &  v2 
)
inline

Member Function Documentation

VectorType& Dune::Fem::VectorDefault< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType , CombinedVector< Vector1Type, Vector2Type > >::addScaled ( const FieldType  s,
const VectorInterface< T > &  v 
)
inlineinherited

Add a multiple of another vector to this one.

static const VectorInterfaceArrayTraits< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< VectorInterfaceArrayTraits< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > > > , VectorInterfaceArrayTraits< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > >::ArrayType >::asImp ( const ThisType other)
inlinestaticprotectedinherited
static VectorInterfaceArrayTraits< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< VectorInterfaceArrayTraits< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > > > , VectorInterfaceArrayTraits< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > >::ArrayType >::asImp ( ThisType other)
inlinestaticprotectedinherited
const VectorInterfaceArrayTraits< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< VectorInterfaceArrayTraits< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > > > , VectorInterfaceArrayTraits< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > >::ArrayType >::asImp ( ) const
inlineprotectedinherited
VectorInterfaceArrayTraits< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< VectorInterfaceArrayTraits< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > > > , VectorInterfaceArrayTraits< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > >::ArrayType >::asImp ( )
inlineprotectedinherited
void Dune::Fem::ArrayInterface< VectorInterfaceArrayTraits< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > > >::assign ( const ElementType element)
inlineinherited

fill the array with copies of an element

Parameters
[in]elementelement wich shall be copied into every array entry
void Dune::Fem::ArrayInterface< VectorInterfaceArrayTraits< VectorDefaultTraits< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType, CombinedVector< Vector1Type, Vector2Type > > > >::assign ( const ArrayInterface< T > &  other)
inlineinherited

copy another array to this one

Copies the data from another array to this one. Both arrays must be of the same size.

Parameters
[in]otherarray to copy
void Dune::Fem::VectorDefault< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType , CombinedVector< Vector1Type, Vector2Type > >::assign ( const VectorInterface< T > &  v)
inlineinherited

copy another vector to this one

Copies the data from another vector to this one. Both vectors must be of the same size.

Parameters
[in]vvector to copy
void Dune::Fem::VectorDefault< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType , CombinedVector< Vector1Type, Vector2Type > >::assign ( const FieldType  s)
inlineinherited

Initialize all fields of this vector with a scalar.

ConstIteratorType Dune::Fem::VectorDefault< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType , CombinedVector< Vector1Type, Vector2Type > >::begin ( ) const
inlineinherited

obtain begin iterator

IteratorType Dune::Fem::VectorDefault< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType , CombinedVector< Vector1Type, Vector2Type > >::begin ( )
inlineinherited

obtain begin iterator

void Dune::Fem::VectorDefault< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType , CombinedVector< Vector1Type, Vector2Type > >::clear ( )
inlineinherited

initialize the vector to 0

ConstIteratorType Dune::Fem::VectorDefault< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType , CombinedVector< Vector1Type, Vector2Type > >::end ( ) const
inlineinherited

obtain end iterator

IteratorType Dune::Fem::VectorDefault< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType , CombinedVector< Vector1Type, Vector2Type > >::end ( )
inlineinherited

obtain end iterator

VectorType& Dune::Fem::VectorDefault< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType , CombinedVector< Vector1Type, Vector2Type > >::operator*= ( const FieldType  s)
inlineinherited

Multiply this vector by a scalar.

VectorType& Dune::Fem::VectorDefault< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType , CombinedVector< Vector1Type, Vector2Type > >::operator+= ( const VectorInterface< T > &  v)
inlineinherited

Add another vector to this one.

VectorType& Dune::Fem::VectorDefault< ExtractCommonFieldType< Vector1Type, Vector2Type >::FieldType , CombinedVector< Vector1Type, Vector2Type > >::operator-= ( const VectorInterface< T > &  v)
inlineinherited

Subtract another vector from this one.

template<class Vector1Type , class Vector2Type >
const FieldType& Dune::Fem::CombinedVector< Vector1Type, Vector2Type >::operator[] ( unsigned int  index) const
inline
template<class Vector1Type , class Vector2Type >
FieldType& Dune::Fem::CombinedVector< Vector1Type, Vector2Type >::operator[] ( unsigned int  index)
inline
template<class Vector1Type , class Vector2Type >
unsigned int Dune::Fem::CombinedVector< Vector1Type, Vector2Type >::size ( ) const
inline

Member Data Documentation

template<class Vector1Type , class Vector2Type >
Vector1Type& Dune::Fem::CombinedVector< Vector1Type, Vector2Type >::vector1_
protected
template<class Vector1Type , class Vector2Type >
Vector2Type& Dune::Fem::CombinedVector< Vector1Type, Vector2Type >::vector2_
protected

The documentation for this class was generated from the following file: