dune-fem  2.4.1-rc
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
Dune::Fem::ManagedDofStorage< GridImp, MapperType, DofArrayType > Class Template Reference

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/space/common/dofmanager.hh>

Inheritance diagram for Dune::Fem::ManagedDofStorage< GridImp, MapperType, DofArrayType >:
Inheritance graph

Public Member Functions

 ManagedDofStorage (const GridImp &grid, const MapperType &mapper, const std::string &name)
 Constructor of ManagedDofStorage. More...
 
ResizeMemoryObjectTyperesizeMemoryObject ()
 return object that calls resize of this memory object More...
 
ReserveMemoryObjectTypereserveMemoryObject ()
 return object that calls reserve of this memory object More...
 
const std::string & name () const
 returns name of this vector More...
 
int size () const
 return size of underlying array More...
 
void resize ()
 resize the memory with the new size More...
 
void reserve (const int needed)
 reserve memory for what is comming More...
 
void dofCompress ()
 copy the dof from the rear section of the vector to the holes More...
 
size_t usedMemorySize () const
 return used memory size More...
 
void enableDofCompression ()
 enable dof compression for this MemObject More...
 
DofArrayType & getArray ()
 return reference to array for DiscreteFunction More...
 

Protected Types

typedef ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType > ThisType
 
typedef DofManager< GridImp > DofManagerType
 
typedef ResizeMemoryObjects< ThisTypeResizeMemoryObjectType
 
typedef ReserveMemoryObjects< ThisTypeReserveMemoryObjectType
 

Protected Member Functions

MapperType & mapper () const
 
void resizeAndMoveToRear ()
 
void moveToFront (const int oldSize, const int block)
 move block to front again More...
 

Protected Attributes

DofArrayType myArray_
 
DofManagerTypedm_
 
MapperType & mapper_
 
DofArrayType & array_
 
std::string name_
 
ResizeMemoryObjectType resizeMemObj_
 
ReserveMemoryObjectType reserveMemObj_
 
bool dataCompressionEnabled_
 

Detailed Description

template<class GridImp, class MapperType, class DofArrayType>
class Dune::Fem::ManagedDofStorage< GridImp, MapperType, DofArrayType >

A ManagedDofStorage holds the memory for one DiscreteFunction.

Member Typedef Documentation

template<class GridImp , class MapperType , class DofArrayType >
typedef DofManager<GridImp> Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::DofManagerType
protectedinherited
template<class GridImp , class MapperType , class DofArrayType >
typedef ReserveMemoryObjects< ThisType > Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::ReserveMemoryObjectType
protectedinherited
template<class GridImp , class MapperType , class DofArrayType >
typedef ResizeMemoryObjects< ThisType > Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::ResizeMemoryObjectType
protectedinherited
template<class GridImp , class MapperType , class DofArrayType >
typedef ManagedDofStorageImplementation<GridImp, MapperType , DofArrayType> Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::ThisType
protectedinherited

Constructor & Destructor Documentation

template<class GridImp , class MapperType , class DofArrayType >
Dune::Fem::ManagedDofStorage< GridImp, MapperType, DofArrayType >::ManagedDofStorage ( const GridImp &  grid,
const MapperType &  mapper,
const std::string &  name 
)
inline

Constructor of ManagedDofStorage.

Member Function Documentation

template<class GridImp , class MapperType , class DofArrayType >
void Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::dofCompress ( )
inlinevirtualinherited

copy the dof from the rear section of the vector to the holes

Implements Dune::Fem::ManagedDofStorageInterface.

References Dune::Fem::SpecialArrayFeatures< ArrayType >::assign().

template<class GridImp , class MapperType , class DofArrayType >
void Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::enableDofCompression ( )
inlinevirtualinherited

enable dof compression for this MemObject

Reimplemented from Dune::Fem::DofStorageInterface.

template<class GridImp , class MapperType , class DofArrayType >
DofArrayType& Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::getArray ( )
inlineinherited

return reference to array for DiscreteFunction

template<class GridImp , class MapperType , class DofArrayType >
MapperType& Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::mapper ( ) const
inlineprotectedinherited
template<class GridImp , class MapperType , class DofArrayType >
void Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::moveToFront ( const int  oldSize,
const int  block 
)
inlineprotectedinherited
template<class GridImp , class MapperType , class DofArrayType >
const std::string& Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::name ( ) const
inlinevirtualinherited

returns name of this vector

Implements Dune::Fem::DofStorageInterface.

template<class GridImp , class MapperType , class DofArrayType >
void Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::reserve ( const int  needed)
inlinevirtualinherited

reserve memory for what is comming

Implements Dune::Fem::ManagedDofStorageInterface.

template<class GridImp , class MapperType , class DofArrayType >
ReserveMemoryObjectType& Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::reserveMemoryObject ( )
inlineinherited

return object that calls reserve of this memory object

template<class GridImp , class MapperType , class DofArrayType >
void Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::resize ( )
inlinevirtualinherited
template<class GridImp , class MapperType , class DofArrayType >
void Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::resizeAndMoveToRear ( )
inlineprotectedinherited
template<class GridImp , class MapperType , class DofArrayType >
ResizeMemoryObjectType& Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::resizeMemoryObject ( )
inlineinherited

return object that calls resize of this memory object

template<class GridImp , class MapperType , class DofArrayType >
int Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::size ( ) const
inlinevirtualinherited

return size of underlying array

Implements Dune::Fem::DofStorageInterface.

template<class GridImp , class MapperType , class DofArrayType >
size_t Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::usedMemorySize ( ) const
inlinevirtualinherited

return used memory size

Implements Dune::Fem::ManagedDofStorageInterface.

Member Data Documentation

template<class GridImp , class MapperType , class DofArrayType >
DofArrayType& Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::array_
protectedinherited
template<class GridImp , class MapperType , class DofArrayType >
bool Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::dataCompressionEnabled_
protectedinherited
template<class GridImp , class MapperType , class DofArrayType >
DofManagerType& Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::dm_
protectedinherited
template<class GridImp , class MapperType , class DofArrayType >
MapperType& Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::mapper_
protectedinherited
template<class GridImp , class MapperType , class DofArrayType >
DofArrayType Dune::Fem::ManagedDofStorage< GridImp, MapperType, DofArrayType >::myArray_
protected
template<class GridImp , class MapperType , class DofArrayType >
std::string Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::name_
protectedinherited
template<class GridImp , class MapperType , class DofArrayType >
ReserveMemoryObjectType Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::reserveMemObj_
protectedinherited
template<class GridImp , class MapperType , class DofArrayType >
ResizeMemoryObjectType Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::resizeMemObj_
protectedinherited

The documentation for this class was generated from the following file: