dune-fem 2.8.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Dune::Fem::SubVector< BaseVectorImp, IndexMapperImp > Class Template Reference

An implementation of DenseVector to extract a portion, not necessarly contiguos, of a vector. More...

#include <dune/fem/storage/subvector.hh>

Inheritance diagram for Dune::Fem::SubVector< BaseVectorImp, IndexMapperImp >:
Inheritance graph

Public Types

typedef BaseType::size_type size_type
 
typedef BaseType::value_type value_type
 
typedef BaseVectorImp BaseVectorType
 Type of the base vector.
 
typedef IndexMapperImp IndexMapperType
 Type of the index mapper.
 
typedef value_type FieldType
 Type of vector elements.
 

Public Member Functions

 SubVector (BaseVectorType &baseVector, IndexMapperType &&indexMapper)
 Constructor.
 
 SubVector (const ThisType &other)
 
ThisTypeoperator= (const ThisType &other)
 Copy entries.
 
void clear ()
 
void resize (size_type)
 
const value_typeoperator[] (size_type i) const
 
value_typeoperator[] (size_type i)
 
size_type size () const
 

Detailed Description

template<class BaseVectorImp, class IndexMapperImp>
class Dune::Fem::SubVector< BaseVectorImp, IndexMapperImp >

An implementation of DenseVector to extract a portion, not necessarly contiguos, of a vector.

Template Parameters
BaseVectorImpThe base vector
IndexMapperImpThe index mapper

Member Typedef Documentation

◆ BaseVectorType

template<class BaseVectorImp , class IndexMapperImp >
typedef BaseVectorImp Dune::Fem::SubVector< BaseVectorImp, IndexMapperImp >::BaseVectorType

Type of the base vector.

◆ FieldType

template<class BaseVectorImp , class IndexMapperImp >
typedef value_type Dune::Fem::SubVector< BaseVectorImp, IndexMapperImp >::FieldType

Type of vector elements.

◆ IndexMapperType

template<class BaseVectorImp , class IndexMapperImp >
typedef IndexMapperImp Dune::Fem::SubVector< BaseVectorImp, IndexMapperImp >::IndexMapperType

Type of the index mapper.

◆ size_type

template<class BaseVectorImp , class IndexMapperImp >
typedef BaseType::size_type Dune::Fem::SubVector< BaseVectorImp, IndexMapperImp >::size_type

◆ value_type

template<class BaseVectorImp , class IndexMapperImp >
typedef BaseType::value_type Dune::Fem::SubVector< BaseVectorImp, IndexMapperImp >::value_type

Constructor & Destructor Documentation

◆ SubVector() [1/2]

template<class BaseVectorImp , class IndexMapperImp >
Dune::Fem::SubVector< BaseVectorImp, IndexMapperImp >::SubVector ( BaseVectorType baseVector,
IndexMapperType &&  indexMapper 
)
inlineexplicit

Constructor.

◆ SubVector() [2/2]

template<class BaseVectorImp , class IndexMapperImp >
Dune::Fem::SubVector< BaseVectorImp, IndexMapperImp >::SubVector ( const ThisType other)
inline

Member Function Documentation

◆ clear()

template<class BaseVectorImp , class IndexMapperImp >
void Dune::Fem::SubVector< BaseVectorImp, IndexMapperImp >::clear ( )
inline

◆ operator=()

template<class BaseVectorImp , class IndexMapperImp >
ThisType & Dune::Fem::SubVector< BaseVectorImp, IndexMapperImp >::operator= ( const ThisType other)
inline

Copy entries.

◆ operator[]() [1/2]

template<class BaseVectorImp , class IndexMapperImp >
value_type & Dune::Fem::SubVector< BaseVectorImp, IndexMapperImp >::operator[] ( size_type  i)
inline

◆ operator[]() [2/2]

template<class BaseVectorImp , class IndexMapperImp >
const value_type & Dune::Fem::SubVector< BaseVectorImp, IndexMapperImp >::operator[] ( size_type  i) const
inline

◆ resize()

template<class BaseVectorImp , class IndexMapperImp >
void Dune::Fem::SubVector< BaseVectorImp, IndexMapperImp >::resize ( size_type  )
inline

◆ size()

template<class BaseVectorImp , class IndexMapperImp >
size_type Dune::Fem::SubVector< BaseVectorImp, IndexMapperImp >::size ( ) const
inline

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