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

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

Inheritance diagram for Dune::Fem::DynamicArray< Element, ArrayAllocator >:
Inheritance graph

Public Types

typedef Element ElementType
 
typedef ElementType FieldType
 
typedef ElementType value_type
 
typedef DynamicArray< Element, ArrayAllocator > 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 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

 DynamicArray (unsigned int size=0)
 
 DynamicArray (const ArrayAllocatorType &arrayAllocator, unsigned int size=0)
 
 DynamicArray (unsigned int size, const ElementType &element)
 
 DynamicArray (const ArrayAllocatorType &arrayAllocator, unsigned int size, const ElementType defaultElement)
 
 DynamicArray (const ThisType &other)
 
 ~DynamicArray ()
 
const ElementTypeoperator[] (unsigned int index) const
 
ElementTypeoperator[] (unsigned int index)
 
void append (const ElementType &element)
 
template<class T >
void append (const ArrayInterface< T > &array)
 
template<class T >
void assign (const ArrayInterface< T > &other)
 copy another array to this one More...
 
ElementTypeleakPointer ()
 
const ElementTypeleakPointer () const
 
void reserve (unsigned int newSize)
 
void resize (unsigned int newSize)
 
void resize (unsigned int newSize, const ElementType &defaultElement)
 
unsigned int size () const
 
void assign (const ElementType &element)
 fill the array with copies of an element 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 Types

typedef ArrayAllocator< ElementTypeArrayAllocatorType
 
typedef ArrayAllocatorType::ElementPtrType ElementPtrType
 

Protected Member Functions

const ArrayDefaultTraits< Element, DynamicArray< Element, ArrayAllocator > >::ArrayTypeasImp () const
 
ArrayDefaultTraits< Element, DynamicArray< Element, ArrayAllocator > >::ArrayTypeasImp ()
 

Static Protected Member Functions

static const ArrayDefaultTraits< Element, DynamicArray< Element, ArrayAllocator > >::ArrayTypeasImp (const ThisType &other)
 
static ArrayDefaultTraits< Element, DynamicArray< Element, ArrayAllocator > >::ArrayTypeasImp (ThisType &other)
 

Protected Attributes

ArrayAllocatorType allocator_
 
unsigned int size_
 
ElementPtrType elements_
 

Member Typedef Documentation

template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
typedef ArrayAllocator< ElementType > Dune::Fem::DynamicArray< Element, ArrayAllocator >::ArrayAllocatorType
protected
typedef ThisType Dune::Fem::ArrayInterface< ArrayDefaultTraits< Element, DynamicArray< Element, ArrayAllocator > > >::ArrayInterfaceType
inherited

type of this interface

typedef DynamicArray< Element, ArrayAllocator > Dune::Fem::ArrayDefault< Element , DynamicArray< Element, ArrayAllocator > >::ArrayType
inherited

type of the implementation (Barton-Nackman)

typedef ConstIteratorType Dune::Fem::ArrayInterface< ArrayDefaultTraits< Element, DynamicArray< Element, ArrayAllocator > > >::const_iterator
inherited

type of constant iterator

typedef Traits :: ConstIteratorType Dune::Fem::ArrayDefault< Element , DynamicArray< Element, ArrayAllocator > >::ConstIteratorType
inherited

type of constant iterator

template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
typedef ArrayAllocatorType :: ElementPtrType Dune::Fem::DynamicArray< Element, ArrayAllocator >::ElementPtrType
protected
template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
typedef Element Dune::Fem::DynamicArray< Element, ArrayAllocator >::ElementType
template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
typedef ElementType Dune::Fem::DynamicArray< Element, ArrayAllocator >::FieldType
typedef IteratorType Dune::Fem::ArrayInterface< ArrayDefaultTraits< Element, DynamicArray< Element, ArrayAllocator > > >::iterator
inherited

type of (non-constant) iterator

typedef Traits :: IteratorType Dune::Fem::ArrayDefault< Element , DynamicArray< Element, ArrayAllocator > >::IteratorType
inherited

type of (non-constant) iterator

typedef unsigned int Dune::Fem::ArrayInterface< ArrayDefaultTraits< Element, DynamicArray< Element, ArrayAllocator > > >::size_type
inherited

type of unsigned integral type of indexing

typedef ArrayDefaultTraits< ElementType, ArrayType > Dune::Fem::ArrayDefault< Element , DynamicArray< Element, ArrayAllocator > >::Traits
inherited

type of the traits

template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
typedef ElementType Dune::Fem::DynamicArray< Element, ArrayAllocator >::value_type

Constructor & Destructor Documentation

template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
Dune::Fem::DynamicArray< Element, ArrayAllocator >::DynamicArray ( unsigned int  size = 0)
inlineexplicit
template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
Dune::Fem::DynamicArray< Element, ArrayAllocator >::DynamicArray ( const ArrayAllocatorType arrayAllocator,
unsigned int  size = 0 
)
inlineexplicit
template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
Dune::Fem::DynamicArray< Element, ArrayAllocator >::DynamicArray ( unsigned int  size,
const ElementType element 
)
inline
template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
Dune::Fem::DynamicArray< Element, ArrayAllocator >::DynamicArray ( const ArrayAllocatorType arrayAllocator,
unsigned int  size,
const ElementType  defaultElement 
)
inline
template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
Dune::Fem::DynamicArray< Element, ArrayAllocator >::DynamicArray ( const ThisType other)
inline
template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
Dune::Fem::DynamicArray< Element, ArrayAllocator >::~DynamicArray ( )
inline

Member Function Documentation

template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
void Dune::Fem::DynamicArray< Element, ArrayAllocator >::append ( const ElementType element)
inline
template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
template<class T >
void Dune::Fem::DynamicArray< Element, ArrayAllocator >::append ( const ArrayInterface< T > &  array)
inline
static const ArrayDefaultTraits< Element, DynamicArray< Element, ArrayAllocator > >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< ArrayDefaultTraits< Element, DynamicArray< Element, ArrayAllocator > > > , ArrayDefaultTraits< Element, DynamicArray< Element, ArrayAllocator > >::ArrayType >::asImp ( const ThisType other)
inlinestaticprotectedinherited
static ArrayDefaultTraits< Element, DynamicArray< Element, ArrayAllocator > >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< ArrayDefaultTraits< Element, DynamicArray< Element, ArrayAllocator > > > , ArrayDefaultTraits< Element, DynamicArray< Element, ArrayAllocator > >::ArrayType >::asImp ( ThisType other)
inlinestaticprotectedinherited
const ArrayDefaultTraits< Element, DynamicArray< Element, ArrayAllocator > >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< ArrayDefaultTraits< Element, DynamicArray< Element, ArrayAllocator > > > , ArrayDefaultTraits< Element, DynamicArray< Element, ArrayAllocator > >::ArrayType >::asImp ( ) const
inlineprotectedinherited
ArrayDefaultTraits< Element, DynamicArray< Element, ArrayAllocator > >::ArrayType & Dune::Fem::BartonNackmanInterface< ArrayInterface< ArrayDefaultTraits< Element, DynamicArray< Element, ArrayAllocator > > > , ArrayDefaultTraits< Element, DynamicArray< Element, ArrayAllocator > >::ArrayType >::asImp ( )
inlineprotectedinherited
void Dune::Fem::ArrayDefault< Element , DynamicArray< Element, ArrayAllocator > >::assign ( const ElementType element)
inlineinherited

fill the array with copies of an element

Parameters
[in]elementelement wich shall be copied into every array entry
template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
template<class T >
void Dune::Fem::DynamicArray< Element, ArrayAllocator >::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

Referenced by Dune::Fem::DynamicVector< Field, ArrayAllocator >::assign(), and Dune::Fem::TemporaryLocalMatrix< DomainSpaceImp, RangeSpaceImp >::clear().

ConstIteratorType Dune::Fem::ArrayDefault< Element , DynamicArray< Element, ArrayAllocator > >::begin ( ) const
inlineinherited

obtain begin iterator

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

obtain begin iterator

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

obtain end iterator

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

obtain end iterator

Returns
an iterator pointing behind the last array element
template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
ElementType* Dune::Fem::DynamicArray< Element, ArrayAllocator >::leakPointer ( )
inline
template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
const ElementType* Dune::Fem::DynamicArray< Element, ArrayAllocator >::leakPointer ( ) const
inline
template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
const ElementType& Dune::Fem::DynamicArray< Element, ArrayAllocator >::operator[] ( unsigned int  index) const
inline
template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
ElementType& Dune::Fem::DynamicArray< Element, ArrayAllocator >::operator[] ( unsigned int  index)
inline
template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
void Dune::Fem::DynamicArray< Element, ArrayAllocator >::reserve ( unsigned int  newSize)
inline
template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
void Dune::Fem::DynamicArray< Element, ArrayAllocator >::resize ( unsigned int  newSize)
inline
template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
void Dune::Fem::DynamicArray< Element, ArrayAllocator >::resize ( unsigned int  newSize,
const ElementType defaultElement 
)
inline
template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
unsigned int Dune::Fem::DynamicArray< Element, ArrayAllocator >::size ( ) const
inline

Member Data Documentation

template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
ArrayAllocatorType Dune::Fem::DynamicArray< Element, ArrayAllocator >::allocator_
protected
template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
ElementPtrType Dune::Fem::DynamicArray< Element, ArrayAllocator >::elements_
protected
template<class Element, template< class > class ArrayAllocator = DefaultArrayAllocator>
unsigned int Dune::Fem::DynamicArray< Element, ArrayAllocator >::size_
protected

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