|
dune-fem 2.8.0
|
An implementation of DenseVector which uses a C-array of fixed size as storage. More...
#include <dune/fem/storage/dynamicarray.hh>

Public Types | |
| typedef BaseType::size_type | size_type |
| typedef BaseType::value_type | value_type |
| typedef value_type | FieldType |
| typedef DenseMatVecTraits< ThisType >::container_type | DofStorageType |
Public Member Functions | |
| StaticArray (const ThisType &)=delete | |
| StaticArray (size_type size, const value_type *vec) | |
| create array of length size and store vec as pointer to memory | |
| size_type | size () const |
| return size of array | |
| value_type & | operator[] (size_type i) |
| random access operator | |
| const value_type & | operator[] (size_type i) const |
| random access operator | |
| ThisType & | operator= (const ThisType &org) |
| copy assignament | |
| void | clear () |
| set all entries to 0 | |
| void | memmove (size_type length, size_type oldStartIdx, size_type newStartIdx) |
| move memory from old to new destination | |
| bool | operator== (const ThisType &other) const |
| value_type * | data () |
| return pointer to data | |
| const value_type * | data () const |
| return pointer to data | |
Protected Attributes | |
| DofStorageType | vec_ |
| size_type | size_ |
An implementation of DenseVector which uses a C-array of fixed size as storage.
| T | is the field type (use float, double, complex, etc) |
| typedef DenseMatVecTraits<ThisType>::container_type Dune::Fem::StaticArray< T >::DofStorageType |
| typedef value_type Dune::Fem::StaticArray< T >::FieldType |
| typedef BaseType::size_type Dune::Fem::StaticArray< T >::size_type |
| typedef BaseType::value_type Dune::Fem::StaticArray< T >::value_type |
|
delete |
|
inlineexplicit |
create array of length size and store vec as pointer to memory
|
inline |
set all entries to 0
|
inline |
return pointer to data
|
inline |
return pointer to data
|
inline |
move memory from old to new destination
|
inline |
copy assignament
|
inline |
comparison operator: checks for object identity, i.e. if this and other are the same objects in memory rather than containing the same data
|
inline |
random access operator
|
inline |
random access operator
|
inline |
return size of array
|
protected |
|
protected |