dune-fem  2.4.1-rc
Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
Dune::Fem::SubArray< BaseArrayImp, IndexMapperImp > Class Template Reference

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

Inheritance diagram for Dune::Fem::SubArray< BaseArrayImp, IndexMapperImp >:
Inheritance graph

Public Types

typedef BaseArrayImp BaseArrayType
 type of the base array More...
 
typedef IndexMapperImp IndexMapperType
 type of the index mapper More...
 
typedef BaseArrayType::ElementType ElementType
 type of array elements More...
 
typedef SubArray< BaseArrayImp, IndexMapperImp > ArrayType
 type of the implementation (Barton-Nackman) More...
 
typedef ArrayDefaultTraits< ElementType, ArrayTypeTraits
 type of the traits More...
 
typedef Traits::ConstIteratorType ConstIteratorType
 type of constant iterator More...
 
typedef Traits::IteratorType IteratorType
 type of (non-constant) iterator More...
 
typedef ThisType ArrayInterfaceType
 type of this interface More...
 
typedef ElementType value_type
 make consistent with std::vector 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

 SubArray (BaseArrayType &baseArray, const IndexMapperType &indexMapper)
 
 SubArray (const ThisType &other)
 
const ElementTypeoperator[] (unsigned int index) const
 
ElementTypeoperator[] (unsigned int index)
 
unsigned int size () const
 
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...
 
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 ArrayDefaultTraits< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > >::ArrayTypeasImp () const
 
ArrayDefaultTraits< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > >::ArrayTypeasImp ()
 

Static Protected Member Functions

static const ArrayDefaultTraits< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > >::ArrayTypeasImp (const ThisType &other)
 
static ArrayDefaultTraits< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > >::ArrayTypeasImp (ThisType &other)
 

Member Typedef Documentation

typedef ThisType Dune::Fem::ArrayInterface< ArrayDefaultTraits< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > > >::ArrayInterfaceType
inherited

type of this interface

typedef SubArray< BaseArrayImp, IndexMapperImp > Dune::Fem::ArrayDefault< BaseArrayImp::ElementType , SubArray< BaseArrayImp, IndexMapperImp > >::ArrayType
inherited

type of the implementation (Barton-Nackman)

template<class BaseArrayImp , class IndexMapperImp >
typedef BaseArrayImp Dune::Fem::SubArray< BaseArrayImp, IndexMapperImp >::BaseArrayType

type of the base array

typedef ConstIteratorType Dune::Fem::ArrayInterface< ArrayDefaultTraits< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > > >::const_iterator
inherited

type of constant iterator

typedef Traits :: ConstIteratorType Dune::Fem::ArrayDefault< BaseArrayImp::ElementType , SubArray< BaseArrayImp, IndexMapperImp > >::ConstIteratorType
inherited

type of constant iterator

template<class BaseArrayImp , class IndexMapperImp >
typedef BaseArrayType :: ElementType Dune::Fem::SubArray< BaseArrayImp, IndexMapperImp >::ElementType

type of array elements

template<class BaseArrayImp , class IndexMapperImp >
typedef IndexMapperImp Dune::Fem::SubArray< BaseArrayImp, IndexMapperImp >::IndexMapperType

type of the index mapper

typedef IteratorType Dune::Fem::ArrayInterface< ArrayDefaultTraits< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > > >::iterator
inherited

type of (non-constant) iterator

typedef Traits :: IteratorType Dune::Fem::ArrayDefault< BaseArrayImp::ElementType , SubArray< BaseArrayImp, IndexMapperImp > >::IteratorType
inherited

type of (non-constant) iterator

typedef unsigned int Dune::Fem::ArrayInterface< ArrayDefaultTraits< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > > >::size_type
inherited

type of unsigned integral type of indexing

typedef ArrayDefaultTraits< ElementType, ArrayType > Dune::Fem::ArrayDefault< BaseArrayImp::ElementType , SubArray< BaseArrayImp, IndexMapperImp > >::Traits
inherited

type of the traits

typedef ElementType Dune::Fem::ArrayInterface< ArrayDefaultTraits< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > > >::value_type
inherited

make consistent with std::vector

Constructor & Destructor Documentation

template<class BaseArrayImp , class IndexMapperImp >
Dune::Fem::SubArray< BaseArrayImp, IndexMapperImp >::SubArray ( BaseArrayType baseArray,
const IndexMapperType indexMapper 
)
inline
template<class BaseArrayImp , class IndexMapperImp >
Dune::Fem::SubArray< BaseArrayImp, IndexMapperImp >::SubArray ( const ThisType other)
inline

Member Function Documentation

static const ArrayDefaultTraits< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< ArrayDefaultTraits< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > > > , ArrayDefaultTraits< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > >::ArrayType >::asImp ( const ThisType other)
inlinestaticprotectedinherited
static ArrayDefaultTraits< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< ArrayDefaultTraits< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > > > , ArrayDefaultTraits< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > >::ArrayType >::asImp ( ThisType other)
inlinestaticprotectedinherited
const ArrayDefaultTraits< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< ArrayDefaultTraits< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > > > , ArrayDefaultTraits< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > >::ArrayType >::asImp ( ) const
inlineprotectedinherited
ArrayDefaultTraits< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< ArrayDefaultTraits< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > > > , ArrayDefaultTraits< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > >::ArrayType >::asImp ( )
inlineprotectedinherited
void Dune::Fem::ArrayDefault< BaseArrayImp::ElementType , SubArray< BaseArrayImp, IndexMapperImp > >::assign ( const ElementType element)
inlineinherited

fill the array with copies of an element

Parameters
[in]elementelement wich shall be copied into every array entry

References Dune::Fem::BartonNackmanInterface< ArrayInterface< AT >, AT::ArrayType >::asImp(), and Dune::Fem::ArrayInterface< AT >::size().

void Dune::Fem::ArrayDefault< BaseArrayImp::ElementType , SubArray< BaseArrayImp, IndexMapperImp > >::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

References Dune::Fem::BartonNackmanInterface< ArrayInterface< AT >, AT::ArrayType >::asImp(), and Dune::Fem::ArrayInterface< AT >::size().

ConstIteratorType Dune::Fem::ArrayDefault< BaseArrayImp::ElementType , SubArray< BaseArrayImp, IndexMapperImp > >::begin ( ) const
inlineinherited

obtain begin iterator

Returns
an iterator pointing to the first array element

References Dune::Fem::BartonNackmanInterface< ArrayInterface< AT >, AT::ArrayType >::asImp().

IteratorType Dune::Fem::ArrayDefault< BaseArrayImp::ElementType , SubArray< BaseArrayImp, IndexMapperImp > >::begin ( )
inlineinherited

obtain begin iterator

Returns
an iterator pointing to the first array element

References Dune::Fem::BartonNackmanInterface< ArrayInterface< AT >, AT::ArrayType >::asImp().

ConstIteratorType Dune::Fem::ArrayDefault< BaseArrayImp::ElementType , SubArray< BaseArrayImp, IndexMapperImp > >::end ( ) const
inlineinherited

obtain end iterator

Returns
an iterator pointing behind the last array element

References Dune::Fem::BartonNackmanInterface< ArrayInterface< AT >, AT::ArrayType >::asImp(), and Dune::Fem::ArrayInterface< AT >::size().

IteratorType Dune::Fem::ArrayDefault< BaseArrayImp::ElementType , SubArray< BaseArrayImp, IndexMapperImp > >::end ( )
inlineinherited

obtain end iterator

Returns
an iterator pointing behind the last array element

References Dune::Fem::BartonNackmanInterface< ArrayInterface< AT >, AT::ArrayType >::asImp(), and Dune::Fem::ArrayInterface< AT >::size().

template<class BaseArrayImp , class IndexMapperImp >
const ElementType& Dune::Fem::SubArray< BaseArrayImp, IndexMapperImp >::operator[] ( unsigned int  index) const
inline
template<class BaseArrayImp , class IndexMapperImp >
ElementType& Dune::Fem::SubArray< BaseArrayImp, IndexMapperImp >::operator[] ( unsigned int  index)
inline
template<class BaseArrayImp , class IndexMapperImp >
unsigned int Dune::Fem::SubArray< BaseArrayImp, IndexMapperImp >::size ( ) const
inline

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