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

abstract array interface More...

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

Inheritance diagram for Dune::Fem::ArrayInterface< AT >:
Inheritance graph

Public Types

typedef AT Traits
 type of the traits More...
 
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 ElementType value_type
 make consistent with std::vector More...
 
typedef Traits::ConstIteratorType ConstIteratorType
 type of constant iterator More...
 
typedef Traits::IteratorType IteratorType
 type of (non-constant) iterator 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

const ElementTypeoperator[] (unsigned int index) const
 access an array element More...
 
ElementTypeoperator[] (unsigned int index)
 access an array element More...
 
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...
 
unsigned int size () const
 

Protected Member Functions

const AT::ArrayType & asImp () const
 
AT::ArrayType & asImp ()
 

Static Protected Member Functions

static const AT::ArrayType & asImp (const ThisType &other)
 
static AT::ArrayType & asImp (ThisType &other)
 

Detailed Description

template<class AT>
class Dune::Fem::ArrayInterface< AT >

abstract array interface

Member Typedef Documentation

template<class AT>
typedef ThisType Dune::Fem::ArrayInterface< AT >::ArrayInterfaceType

type of this interface

template<class AT>
typedef Traits::ArrayType Dune::Fem::ArrayInterface< AT >::ArrayType

type of the implementation (Barton-Nackman)

template<class AT>
typedef ConstIteratorType Dune::Fem::ArrayInterface< AT >::const_iterator

type of constant iterator

template<class AT>
typedef Traits::ConstIteratorType Dune::Fem::ArrayInterface< AT >::ConstIteratorType

type of constant iterator

template<class AT>
typedef Traits::ElementType Dune::Fem::ArrayInterface< AT >::ElementType

type of the array elements

template<class AT>
typedef IteratorType Dune::Fem::ArrayInterface< AT >::iterator

type of (non-constant) iterator

template<class AT>
typedef Traits::IteratorType Dune::Fem::ArrayInterface< AT >::IteratorType

type of (non-constant) iterator

template<class AT>
typedef unsigned int Dune::Fem::ArrayInterface< AT >::size_type

type of unsigned integral type of indexing

template<class AT>
typedef AT Dune::Fem::ArrayInterface< AT >::Traits

type of the traits

template<class AT>
typedef ElementType Dune::Fem::ArrayInterface< AT >::value_type

make consistent with std::vector

Member Function Documentation

static const AT::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< AT > , AT::ArrayType >::asImp ( const ThisType other)
inlinestaticprotectedinherited
static AT::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< AT > , AT::ArrayType >::asImp ( ThisType other)
inlinestaticprotectedinherited
const AT::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< AT > , AT::ArrayType >::asImp ( ) const
inlineprotectedinherited
AT::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< AT > , AT::ArrayType >::asImp ( )
inlineprotectedinherited
template<class AT>
void Dune::Fem::ArrayInterface< AT >::assign ( const ElementType element)
inline
template<class AT>
template<class T >
void Dune::Fem::ArrayInterface< AT >::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 AT>
ConstIteratorType Dune::Fem::ArrayInterface< AT >::begin ( ) const
inline

obtain begin iterator

Returns
an iterator pointing to the first array element

Referenced by Dune::Fem::ArrayInterface< ArrayDefaultTraits< FieldType, DynamicArray< FieldType, DefaultArrayAllocator > > >::begin().

template<class AT>
IteratorType Dune::Fem::ArrayInterface< AT >::begin ( )
inline

obtain begin iterator

Returns
an iterator pointing to the first array element
template<class AT>
ConstIteratorType Dune::Fem::ArrayInterface< AT >::end ( ) const
inline

obtain end iterator

Returns
an iterator pointing behind the last array element

Referenced by Dune::Fem::ArrayInterface< ArrayDefaultTraits< FieldType, DynamicArray< FieldType, DefaultArrayAllocator > > >::end().

template<class AT>
IteratorType Dune::Fem::ArrayInterface< AT >::end ( )
inline

obtain end iterator

Returns
an iterator pointing behind the last array element
template<class AT>
const ElementType& Dune::Fem::ArrayInterface< AT >::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 AT>
ElementType& Dune::Fem::ArrayInterface< AT >::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 AT>
unsigned int Dune::Fem::ArrayInterface< AT >::size ( ) const
inline

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