dune-fem
2.4.1-rc
|
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>
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, 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 | |
ArrayWrapper (unsigned int size, ElementType *elements) | |
create an ArrayWrapper from a size and a pointer 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 |
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 > >::ArrayType & | asImp () const |
ArrayDefaultTraits< ElementImp, ArrayWrapper< ElementImp > >::ArrayType & | asImp () |
Static Protected Member Functions | |
static const ArrayDefaultTraits< ElementImp, ArrayWrapper< ElementImp > >::ArrayType & | asImp (const ThisType &other) |
static ArrayDefaultTraits< ElementImp, ArrayWrapper< ElementImp > >::ArrayType & | asImp (ThisType &other) |
implementation of the ArrayInterface wrapping a pointer to an array of elements
|
inherited |
type of this interface
|
inherited |
type of the implementation (Barton-Nackman)
|
inherited |
type of constant iterator
|
inherited |
type of constant iterator
typedef ElementImp Dune::Fem::ArrayWrapper< ElementImp >::ElementType |
type of the array elements
|
inherited |
type of (non-constant) iterator
|
inherited |
type of (non-constant) iterator
|
inherited |
type of unsigned integral type of indexing
|
inherited |
type of the traits
|
inherited |
make consistent with std::vector
|
inline |
create an ArrayWrapper from a size and a pointer
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineinherited |
fill the array with copies of an element
[in] | element | element wich shall be copied into every array entry |
|
inlineinherited |
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 |
|
inlineinherited |
obtain begin iterator
|
inlineinherited |
obtain begin iterator
|
inlineinherited |
obtain end iterator
|
inlineinherited |
obtain end iterator
|
inline |
access an array element
[in] | index | index of the array element to access |
|
inline |
access an array element
[in] | index | index of the array element to access |
|
inline |
obtain the size of the array