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

Public Types | |
| typedef Allocator | AllocatorType |
| 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 | |
| DynamicArray (const ThisType &other) | |
| copy constructor | |
| DynamicArray (size_type size, const value_type &value, AllocatorType allocator=AllocatorType()) | |
| create array of length size with initialized values | |
| DynamicArray (size_type size=0, AllocatorType allocator=AllocatorType()) | |
| create array of length size without initializing the values | |
| void | setMemoryFactor (double memFactor) |
| set memory factor | |
| ~DynamicArray () | |
| destructor | |
| size_type | capacity () const |
| return number of total enties of array | |
| void | assign (const ThisType &org) |
| assign arrays | |
| ThisType & | operator= (const ThisType &org) |
| assign arrays | |
| void | resize (size_type nsize) |
| void | resize (size_type nsize, const value_type &value) |
| void | doResize (size_type nsize, bool initializeNewValues, const value_type &value=value_type()) |
| void | reserve (size_type mSize) |
| size_type | usedMemorySize () const |
| return size of vector in bytes | |
| 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 | |
| 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 Types | |
| typedef DynamicArray< T, AllocatorType > | ThisType |
| typedef StaticArray< T > | BaseType |
Protected Member Functions | |
| void | adjustMemory (size_type mSize, bool initializeNewValues, const value_type &value=value_type()) |
| adjust the memory | |
| void | freeMemory () |
Protected Attributes | |
| double | memoryFactor_ |
| size_type | memSize_ |
| AllocatorType | allocator_ |
| DofStorageType | vec_ |
| size_type | size_ |
An implementation of DenseVector which uses a C-array of dynamic size as storage.
| T | is the field type (use float, double, complex, etc) |
| Allocator | is the allocator type |
| typedef Allocator Dune::Fem::DynamicArray< T, Allocator >::AllocatorType |
|
protected |
|
inherited |
|
inherited |
| typedef BaseType::size_type Dune::Fem::DynamicArray< T, Allocator >::size_type |
|
protected |
| typedef BaseType::value_type Dune::Fem::DynamicArray< T, Allocator >::value_type |
|
inline |
copy constructor
|
inlineexplicit |
create array of length size with initialized values
|
inlineexplicit |
create array of length size without initializing the values
|
inline |
destructor
|
inlineprotected |
adjust the memory
|
inline |
assign arrays
|
inline |
return number of total enties of array
|
inlineinherited |
set all entries to 0
|
inlineinherited |
return pointer to data
|
inlineinherited |
return pointer to data
|
inline |
|
inlineprotected |
|
inlineinherited |
move memory from old to new destination
|
inline |
assign arrays
|
inlineinherited |
comparison operator: checks for object identity, i.e. if this and other are the same objects in memory rather than containing the same data
|
inlineinherited |
random access operator
|
inlineinherited |
random access operator
|
inline |
reserve vector size with new mSizeif if mSize is smaller then actual memSize, then nothing is done
|
inline |
resize vector with new size nsize if nsize is smaller then actual memSize, size is just set to new value
|
inline |
resize vector with new size nsize if nsize is smaller then actual memSize, size is just set to new value
|
inline |
set memory factor
|
inlineinherited |
return size of array
|
inline |
return size of vector in bytes
|
protected |
|
protected |
|
protected |
|
protectedinherited |
|
protectedinherited |