dune-fem 2.8.0
|
#include <dune/fem/space/common/dofmanager.hh>
Public Member Functions | |
ManagedDofStorage (const GridImp &grid, const MapperType &mapper) | |
Constructor of ManagedDofStorage. | |
ResizeMemoryObjectType & | resizeMemoryObject () |
return object that calls resize of this memory object | |
ReserveMemoryObjectType & | reserveMemoryObject () |
return object that calls reserve of this memory object | |
int | size () const |
return size of underlying array | |
void | resize (const bool enlargeOnly) |
resize the memory with the new size | |
void | reserve (const int needed) |
reserve memory for what is comming | |
void | dofCompress (const bool clearResizedArrays) |
copy the dof from the rear section of the vector to the holes | |
size_t | usedMemorySize () const |
return used memory size | |
void | enableDofCompression () |
enable dof compression for this MemObject | |
DofArrayType & | getArray () |
return reference to array for DiscreteFunction | |
Protected Types | |
typedef ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType > | ThisType |
typedef DofManager< GridImp > | DofManagerType |
typedef ResizeMemoryObjects< ThisType > | ResizeMemoryObjectType |
typedef ReserveMemoryObjects< ThisType > | ReserveMemoryObjectType |
Protected Member Functions | |
void | resize (std::false_type, const bool enlargeOnly) |
void | resize (std::true_type, const bool enlargeOnly) |
MapperType & | mapper () const |
void | resizeAndMoveToRear () |
void | moveToFront (const int oldSize, const int block) |
move block to front again | |
Protected Attributes | |
DofArrayType | myArray_ |
DofManagerType & | dm_ |
MapperType & | mapper_ |
DofArrayType & | array_ |
ResizeMemoryObjectType | resizeMemObj_ |
ReserveMemoryObjectType | reserveMemObj_ |
bool | dataCompressionEnabled_ |
A ManagedDofStorage holds the memory for one DiscreteFunction.