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

implementation of the ArrayInterface wrapping a pointer to an array of elements More...

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

Inheritance diagram for Dune::Fem::ArrayWrapper< ElementImp >:
Inheritance graph

Public Types

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

 ArrayWrapper (unsigned int size, ElementType *elements)
 create an ArrayWrapper from a size and a pointer 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
 
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< ElementImp, ArrayWrapper< ElementImp > >::ArrayTypeasImp () const
 
ArrayDefaultTraits< ElementImp, ArrayWrapper< ElementImp > >::ArrayTypeasImp ()
 

Static Protected Member Functions

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

Detailed Description

template<class ElementImp>
class Dune::Fem::ArrayWrapper< ElementImp >

implementation of the ArrayInterface wrapping a pointer to an array of elements

Member Typedef Documentation

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

type of this interface

typedef ArrayWrapper< ElementImp > Dune::Fem::ArrayDefault< ElementImp, ArrayWrapper< ElementImp > >::ArrayType
inherited

type of the implementation (Barton-Nackman)

type of constant iterator

typedef Traits :: ConstIteratorType Dune::Fem::ArrayDefault< ElementImp, ArrayWrapper< ElementImp > >::ConstIteratorType
inherited

type of constant iterator

template<class ElementImp >
typedef ElementImp Dune::Fem::ArrayWrapper< ElementImp >::ElementType

type of the array elements

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

type of (non-constant) iterator

typedef Traits :: IteratorType Dune::Fem::ArrayDefault< ElementImp, ArrayWrapper< ElementImp > >::IteratorType
inherited

type of (non-constant) iterator

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

type of unsigned integral type of indexing

typedef ArrayDefaultTraits< ElementType, ArrayType > Dune::Fem::ArrayDefault< ElementImp, ArrayWrapper< ElementImp > >::Traits
inherited

type of the traits

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

make consistent with std::vector

Constructor & Destructor Documentation

template<class ElementImp >
Dune::Fem::ArrayWrapper< ElementImp >::ArrayWrapper ( unsigned int  size,
ElementType elements 
)
inline

create an ArrayWrapper from a size and a pointer

Member Function Documentation

static const ArrayDefaultTraits< ElementImp, ArrayWrapper< ElementImp > >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< ArrayDefaultTraits< ElementImp, ArrayWrapper< ElementImp > > > , ArrayDefaultTraits< ElementImp, ArrayWrapper< ElementImp > >::ArrayType >::asImp ( const ThisType other)
inlinestaticprotectedinherited
static ArrayDefaultTraits< ElementImp, ArrayWrapper< ElementImp > >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< ArrayDefaultTraits< ElementImp, ArrayWrapper< ElementImp > > > , ArrayDefaultTraits< ElementImp, ArrayWrapper< ElementImp > >::ArrayType >::asImp ( ThisType other)
inlinestaticprotectedinherited
const ArrayDefaultTraits< ElementImp, ArrayWrapper< ElementImp > >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< ArrayDefaultTraits< ElementImp, ArrayWrapper< ElementImp > > > , ArrayDefaultTraits< ElementImp, ArrayWrapper< ElementImp > >::ArrayType >::asImp ( ) const
inlineprotectedinherited
ArrayDefaultTraits< ElementImp, ArrayWrapper< ElementImp > >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< ArrayDefaultTraits< ElementImp, ArrayWrapper< ElementImp > > > , ArrayDefaultTraits< ElementImp, ArrayWrapper< ElementImp > >::ArrayType >::asImp ( )
inlineprotectedinherited
void Dune::Fem::ArrayDefault< ElementImp, ArrayWrapper< ElementImp > >::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::ArrayDefault< ElementImp, ArrayWrapper< ElementImp > >::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
ConstIteratorType Dune::Fem::ArrayDefault< ElementImp, ArrayWrapper< ElementImp > >::begin ( ) const
inlineinherited

obtain begin iterator

Returns
an iterator pointing to the first array element
IteratorType Dune::Fem::ArrayDefault< ElementImp, ArrayWrapper< ElementImp > >::begin ( )
inlineinherited

obtain begin iterator

Returns
an iterator pointing to the first array element
ConstIteratorType Dune::Fem::ArrayDefault< ElementImp, ArrayWrapper< ElementImp > >::end ( ) const
inlineinherited

obtain end iterator

Returns
an iterator pointing behind the last array element
IteratorType Dune::Fem::ArrayDefault< ElementImp, ArrayWrapper< ElementImp > >::end ( )
inlineinherited

obtain end iterator

Returns
an iterator pointing behind the last array element
template<class ElementImp >
const ElementType& Dune::Fem::ArrayWrapper< ElementImp >::operator[] ( unsigned int  index) const
inline

access an array element

Parameters
[in]indexindex of the array element to access
Returns
a const reference to the array element
template<class ElementImp >
ElementType& Dune::Fem::ArrayWrapper< ElementImp >::operator[] ( unsigned int  index)
inline

access an array element

Parameters
[in]indexindex of the array element to access
Returns
a reference to the array element
template<class ElementImp >
unsigned int Dune::Fem::ArrayWrapper< ElementImp >::size ( ) const
inline

obtain the size of the array

Returns
the size of the array

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