dune-fem
2.4.1-rc
|
abstract array interface More...
#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/storage/array.hh>
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 ElementType & | operator[] (unsigned int index) const |
access an array element More... | |
ElementType & | operator[] (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) |
abstract array interface
typedef ThisType Dune::Fem::ArrayInterface< AT >::ArrayInterfaceType |
type of this interface
typedef Traits::ArrayType Dune::Fem::ArrayInterface< AT >::ArrayType |
type of the implementation (Barton-Nackman)
typedef ConstIteratorType Dune::Fem::ArrayInterface< AT >::const_iterator |
type of constant iterator
typedef Traits::ConstIteratorType Dune::Fem::ArrayInterface< AT >::ConstIteratorType |
type of constant iterator
typedef Traits::ElementType Dune::Fem::ArrayInterface< AT >::ElementType |
type of the array elements
typedef IteratorType Dune::Fem::ArrayInterface< AT >::iterator |
type of (non-constant) iterator
typedef Traits::IteratorType Dune::Fem::ArrayInterface< AT >::IteratorType |
type of (non-constant) iterator
typedef unsigned int Dune::Fem::ArrayInterface< AT >::size_type |
type of unsigned integral type of indexing
typedef AT Dune::Fem::ArrayInterface< AT >::Traits |
type of the traits
typedef ElementType Dune::Fem::ArrayInterface< AT >::value_type |
make consistent with std::vector
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
|
inlineprotectedinherited |
Referenced by Dune::Fem::ArrayInterface< ArrayDefaultTraits< FieldType, DynamicArray< FieldType, DefaultArrayAllocator > > >::assign(), Dune::Fem::ArrayDefault< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > >::assign(), Dune::Fem::ArrayInterface< ArrayDefaultTraits< FieldType, DynamicArray< FieldType, DefaultArrayAllocator > > >::begin(), Dune::Fem::ArrayDefault< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > >::begin(), Dune::Fem::ArrayInterface< ArrayDefaultTraits< FieldType, DynamicArray< FieldType, DefaultArrayAllocator > > >::end(), Dune::Fem::ArrayDefault< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > >::end(), Dune::Fem::ArrayInterface< ArrayDefaultTraits< FieldType, DynamicArray< FieldType, DefaultArrayAllocator > > >::operator[](), and Dune::Fem::ArrayInterface< ArrayDefaultTraits< FieldType, DynamicArray< FieldType, DefaultArrayAllocator > > >::size().
|
inlineprotectedinherited |
|
inline |
fill the array with copies of an element
[in] | element | element wich shall be copied into every array entry |
Referenced by Dune::Fem::ArrayInterface< ArrayDefaultTraits< FieldType, DynamicArray< FieldType, DefaultArrayAllocator > > >::assign(), Dune::Fem::DynamicArray< CoordinateType >::DynamicArray(), and Dune::Fem::FixedSizeArray< Element, Size >::FixedSizeArray().
|
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
Referenced by Dune::Fem::ArrayInterface< ArrayDefaultTraits< FieldType, DynamicArray< FieldType, DefaultArrayAllocator > > >::begin().
|
inline |
obtain begin iterator
|
inline |
obtain end iterator
Referenced by Dune::Fem::ArrayInterface< ArrayDefaultTraits< FieldType, DynamicArray< FieldType, DefaultArrayAllocator > > >::end().
|
inline |
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
Referenced by Dune::Fem::STLArray< ElementImp >::append(), Dune::Fem::DynamicArray< CoordinateType >::append(), Dune::Fem::STLArray< ElementImp >::assign(), Dune::Fem::ArrayDefault< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > >::assign(), Dune::Fem::DynamicArray< CoordinateType >::assign(), Dune::Fem::DynamicArray< CoordinateType >::DynamicArray(), Dune::Fem::ArrayDefault< BaseArrayImp::ElementType, SubArray< BaseArrayImp, IndexMapperImp > >::end(), Dune::Fem::moveBackward(), Dune::Fem::moveForward(), and Dune::Fem::ArrayInterface< ArrayDefaultTraits< FieldType, DynamicArray< FieldType, DefaultArrayAllocator > > >::size().