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

default implementation of the ArrayInterface More...

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

Inheritance diagram for Dune::Fem::ArrayDefault< ElementImp, ArrayImp >:
Inheritance graph

Public Types

typedef ElementImp ElementType
 type of the array elements More...
 
typedef ArrayImp 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

void assign (const ElementType &element)
 fill the array with copies of an element More...
 
template<class T >
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...
 
const ElementTypeoperator[] (unsigned int index) const
 access an array element More...
 
ElementTypeoperator[] (unsigned int index)
 access an array element More...
 
unsigned int size () const
 

Protected Member Functions

const ArrayDefaultTraits< ElementImp, ArrayImp >::ArrayTypeasImp () const
 
ArrayDefaultTraits< ElementImp, ArrayImp >::ArrayTypeasImp ()
 

Static Protected Member Functions

static const ArrayDefaultTraits< ElementImp, ArrayImp >::ArrayTypeasImp (const ThisType &other)
 
static ArrayDefaultTraits< ElementImp, ArrayImp >::ArrayTypeasImp (ThisType &other)
 

Detailed Description

template<class ElementImp, class ArrayImp>
class Dune::Fem::ArrayDefault< ElementImp, ArrayImp >

default implementation of the ArrayInterface

Member Typedef Documentation

typedef ThisType Dune::Fem::ArrayInterface< ArrayDefaultTraits< ElementImp, ArrayImp > >::ArrayInterfaceType
inherited

type of this interface

template<class ElementImp, class ArrayImp>
typedef ArrayImp Dune::Fem::ArrayDefault< ElementImp, ArrayImp >::ArrayType

type of the implementation (Barton-Nackman)

typedef ConstIteratorType Dune::Fem::ArrayInterface< ArrayDefaultTraits< ElementImp, ArrayImp > >::const_iterator
inherited

type of constant iterator

template<class ElementImp, class ArrayImp>
typedef Traits :: ConstIteratorType Dune::Fem::ArrayDefault< ElementImp, ArrayImp >::ConstIteratorType

type of constant iterator

template<class ElementImp, class ArrayImp>
typedef ElementImp Dune::Fem::ArrayDefault< ElementImp, ArrayImp >::ElementType

type of the array elements

typedef IteratorType Dune::Fem::ArrayInterface< ArrayDefaultTraits< ElementImp, ArrayImp > >::iterator
inherited

type of (non-constant) iterator

template<class ElementImp, class ArrayImp>
typedef Traits :: IteratorType Dune::Fem::ArrayDefault< ElementImp, ArrayImp >::IteratorType

type of (non-constant) iterator

typedef unsigned int Dune::Fem::ArrayInterface< ArrayDefaultTraits< ElementImp, ArrayImp > >::size_type
inherited

type of unsigned integral type of indexing

template<class ElementImp, class ArrayImp>
typedef ArrayDefaultTraits< ElementType, ArrayType > Dune::Fem::ArrayDefault< ElementImp, ArrayImp >::Traits

type of the traits

typedef ElementType Dune::Fem::ArrayInterface< ArrayDefaultTraits< ElementImp, ArrayImp > >::value_type
inherited

make consistent with std::vector

Member Function Documentation

static const ArrayDefaultTraits< ElementImp, ArrayImp >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< ArrayDefaultTraits< ElementImp, ArrayImp > > , ArrayDefaultTraits< ElementImp, ArrayImp >::ArrayType >::asImp ( const ThisType other)
inlinestaticprotectedinherited
static ArrayDefaultTraits< ElementImp, ArrayImp >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< ArrayDefaultTraits< ElementImp, ArrayImp > > , ArrayDefaultTraits< ElementImp, ArrayImp >::ArrayType >::asImp ( ThisType other)
inlinestaticprotectedinherited
const ArrayDefaultTraits< ElementImp, ArrayImp >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< ArrayDefaultTraits< ElementImp, ArrayImp > > , ArrayDefaultTraits< ElementImp, ArrayImp >::ArrayType >::asImp ( ) const
inlineprotectedinherited
ArrayDefaultTraits< ElementImp, ArrayImp >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< ArrayDefaultTraits< ElementImp, ArrayImp > > , ArrayDefaultTraits< ElementImp, ArrayImp >::ArrayType >::asImp ( )
inlineprotectedinherited
template<class ElementImp, class ArrayImp>
void Dune::Fem::ArrayDefault< ElementImp, ArrayImp >::assign ( const ElementType element)
inline

fill the array with copies of an element

Parameters
[in]elementelement wich shall be copied into every array entry
template<class ElementImp, class ArrayImp>
template<class T >
void Dune::Fem::ArrayDefault< ElementImp, ArrayImp >::assign ( const ArrayInterface< T > &  other)
inline

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
template<class ElementImp, class ArrayImp>
ConstIteratorType Dune::Fem::ArrayDefault< ElementImp, ArrayImp >::begin ( ) const
inline

obtain begin iterator

Returns
an iterator pointing to the first array element
template<class ElementImp, class ArrayImp>
IteratorType Dune::Fem::ArrayDefault< ElementImp, ArrayImp >::begin ( )
inline

obtain begin iterator

Returns
an iterator pointing to the first array element
template<class ElementImp, class ArrayImp>
ConstIteratorType Dune::Fem::ArrayDefault< ElementImp, ArrayImp >::end ( ) const
inline

obtain end iterator

Returns
an iterator pointing behind the last array element
template<class ElementImp, class ArrayImp>
IteratorType Dune::Fem::ArrayDefault< ElementImp, ArrayImp >::end ( )
inline

obtain end iterator

Returns
an iterator pointing behind the last array element
const ElementType& Dune::Fem::ArrayInterface< ArrayDefaultTraits< ElementImp, ArrayImp > >::operator[] ( unsigned int  index) const
inlineinherited

access an array element

Parameters
[in]indexindex of the array element to access
Returns
a const reference to the array element
ElementType& Dune::Fem::ArrayInterface< ArrayDefaultTraits< ElementImp, ArrayImp > >::operator[] ( unsigned int  index)
inlineinherited

access an array element

Parameters
[in]indexindex of the array element to access
Returns
a reference to the array element
unsigned int Dune::Fem::ArrayInterface< ArrayDefaultTraits< ElementImp, ArrayImp > >::size ( ) const
inlineinherited

obtain the size of the array

Returns
the size of the array

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