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

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

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

Public Types

typedef ElementImp ElementType
 
typedef STLArrayTraits< ElementTypeTraits
 
typedef Traits::IteratorType IteratorType
 
typedef Traits::ConstIteratorType ConstIteratorType
 
typedef Traits::ArrayType ArrayType
 type of the implementation (Barton-Nackman) 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

 STLArray (unsigned int size=0)
 
 STLArray (unsigned int size, const ElementType &element)
 
 STLArray (const ThisType &other)
 
const ElementTypeoperator[] (unsigned int index) const
 
ElementTypeoperator[] (unsigned int index)
 
ThisTypeassign (const ElementType &element)
 fill the array with copies of an element More...
 
template<class T >
ThisTypeassign (const ArrayInterface< T > &other)
 copy another array to this one More...
 
void append (const ElementType &element)
 
template<class T >
void append (const ArrayInterface< T > &array)
 
void resize (unsigned int newSize)
 
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 STLArrayTraits< ElementImp >::ArrayTypeasImp () const
 
STLArrayTraits< ElementImp >::ArrayTypeasImp ()
 

Static Protected Member Functions

static const STLArrayTraits< ElementImp >::ArrayTypeasImp (const ThisType &other)
 
static STLArrayTraits< ElementImp >::ArrayTypeasImp (ThisType &other)
 

Protected Attributes

stdVectorType vector_
 

Member Typedef Documentation

type of this interface

type of the implementation (Barton-Nackman)

type of constant iterator

template<class ElementImp >
typedef Traits :: ConstIteratorType Dune::Fem::STLArray< ElementImp >::ConstIteratorType
template<class ElementImp >
typedef ElementImp Dune::Fem::STLArray< ElementImp >::ElementType
typedef IteratorType Dune::Fem::ArrayInterface< STLArrayTraits< ElementImp > >::iterator
inherited

type of (non-constant) iterator

template<class ElementImp >
typedef Traits :: IteratorType Dune::Fem::STLArray< ElementImp >::IteratorType
typedef unsigned int Dune::Fem::ArrayInterface< STLArrayTraits< ElementImp > >::size_type
inherited

type of unsigned integral type of indexing

template<class ElementImp >
typedef STLArrayTraits< ElementType > Dune::Fem::STLArray< ElementImp >::Traits
typedef ElementType Dune::Fem::ArrayInterface< STLArrayTraits< ElementImp > >::value_type
inherited

make consistent with std::vector

Constructor & Destructor Documentation

template<class ElementImp >
Dune::Fem::STLArray< ElementImp >::STLArray ( unsigned int  size = 0)
inlineexplicit
template<class ElementImp >
Dune::Fem::STLArray< ElementImp >::STLArray ( unsigned int  size,
const ElementType element 
)
inline
template<class ElementImp >
Dune::Fem::STLArray< ElementImp >::STLArray ( const ThisType other)
inline

Member Function Documentation

template<class ElementImp >
void Dune::Fem::STLArray< ElementImp >::append ( const ElementType element)
inline
template<class ElementImp >
template<class T >
void Dune::Fem::STLArray< ElementImp >::append ( const ArrayInterface< T > &  array)
inline
static const STLArrayTraits< ElementImp >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< STLArrayTraits< ElementImp > > , STLArrayTraits< ElementImp >::ArrayType >::asImp ( const ThisType other)
inlinestaticprotectedinherited
static STLArrayTraits< ElementImp >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< STLArrayTraits< ElementImp > > , STLArrayTraits< ElementImp >::ArrayType >::asImp ( ThisType other)
inlinestaticprotectedinherited
const STLArrayTraits< ElementImp >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< STLArrayTraits< ElementImp > > , STLArrayTraits< ElementImp >::ArrayType >::asImp ( ) const
inlineprotectedinherited
STLArrayTraits< ElementImp >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< STLArrayTraits< ElementImp > > , STLArrayTraits< ElementImp >::ArrayType >::asImp ( )
inlineprotectedinherited
template<class ElementImp >
ThisType& Dune::Fem::STLArray< ElementImp >::assign ( const ElementType element)
inline

fill the array with copies of an element

References Dune::Fem::STLArray< ElementImp >::assign().

Referenced by Dune::Fem::STLArray< ElementImp >::assign().

template<class ElementImp >
template<class T >
ThisType& Dune::Fem::STLArray< ElementImp >::assign ( const ArrayInterface< T > &  other)
inline

copy another array to this one

References Dune::Fem::ArrayInterface< AT >::size().

template<class ElementImp >
ConstIteratorType Dune::Fem::STLArray< ElementImp >::begin ( ) const
inline

obtain begin iterator

template<class ElementImp >
IteratorType Dune::Fem::STLArray< ElementImp >::begin ( )
inline

obtain begin iterator

template<class ElementImp >
ConstIteratorType Dune::Fem::STLArray< ElementImp >::end ( ) const
inline

obtain end iterator

template<class ElementImp >
IteratorType Dune::Fem::STLArray< ElementImp >::end ( )
inline

obtain end iterator

template<class ElementImp >
const ElementType& Dune::Fem::STLArray< ElementImp >::operator[] ( unsigned int  index) const
inline
template<class ElementImp >
ElementType& Dune::Fem::STLArray< ElementImp >::operator[] ( unsigned int  index)
inline
template<class ElementImp >
void Dune::Fem::STLArray< ElementImp >::resize ( unsigned int  newSize)
inline
template<class ElementImp >
unsigned int Dune::Fem::STLArray< ElementImp >::size ( ) const
inline

Member Data Documentation

template<class ElementImp >
stdVectorType Dune::Fem::STLArray< ElementImp >::vector_
protected

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