dune-fem
2.4.1-rc
|
default implementation of the ArrayInterface More...
#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/storage/array.hh>
Public Types | |
typedef ElementImp | ElementType |
type of the array elements More... | |
typedef ArrayImp | ArrayType |
type of the implementation (Barton-Nackman) More... | |
typedef ArrayDefaultTraits< ElementType, ArrayType > | Traits |
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 ElementType & | operator[] (unsigned int index) const |
access an array element More... | |
ElementType & | operator[] (unsigned int index) |
access an array element More... | |
unsigned int | size () const |
Protected Member Functions | |
const ArrayDefaultTraits< ElementImp, ArrayImp >::ArrayType & | asImp () const |
ArrayDefaultTraits< ElementImp, ArrayImp >::ArrayType & | asImp () |
Static Protected Member Functions | |
static const ArrayDefaultTraits< ElementImp, ArrayImp >::ArrayType & | asImp (const ThisType &other) |
static ArrayDefaultTraits< ElementImp, ArrayImp >::ArrayType & | asImp (ThisType &other) |
default implementation of the ArrayInterface
|
inherited |
type of this interface
typedef ArrayImp Dune::Fem::ArrayDefault< ElementImp, ArrayImp >::ArrayType |
type of the implementation (Barton-Nackman)
|
inherited |
type of constant iterator
typedef Traits :: ConstIteratorType Dune::Fem::ArrayDefault< ElementImp, ArrayImp >::ConstIteratorType |
type of constant iterator
typedef ElementImp Dune::Fem::ArrayDefault< ElementImp, ArrayImp >::ElementType |
type of the array elements
|
inherited |
type of (non-constant) iterator
typedef Traits :: IteratorType Dune::Fem::ArrayDefault< ElementImp, ArrayImp >::IteratorType |
type of (non-constant) iterator
|
inherited |
type of unsigned integral type of indexing
typedef ArrayDefaultTraits< ElementType, ArrayType > Dune::Fem::ArrayDefault< ElementImp, ArrayImp >::Traits |
type of the traits
|
inherited |
make consistent with std::vector
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inline |
fill the array with copies of an element
[in] | element | element wich shall be copied into every array entry |
|
inline |
copy another array to this one
Copies the data from another array to this one. Both arrays must be of the same size.
[in] | other | array to copy |
|
inline |
obtain begin iterator
|
inline |
obtain begin iterator
|
inline |
obtain end iterator
|
inline |
obtain end iterator
|
inlineinherited |
access an array element
[in] | index | index of the array element to access |
|
inlineinherited |
access an array element
[in] | index | index of the array element to access |
|
inlineinherited |
obtain the size of the array