dune-fem  2.4.1-rc
Public Types | Static Public Member Functions | List of all members
Dune::Fem::SpecialArrayFeatures< ArrayType > Struct Template Reference

SpecialArrayFeatures is a wrapper class to extend some array classes with some special features needed for the MemObject. There exsist a specialization for MutableArray and PetscVector. More...

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

Public Types

typedef ArrayType::value_type ValueType
 value type of array, i.e. double More...
 

Static Public Member Functions

static size_t used (const ArrayType &array)
 return used memory size of Array More...
 
static void setMemoryFactor (ArrayType &array, const double memFactor)
 set memory overestimate factor, here does nothing More...
 
static void memMoveBackward (ArrayType &array, const int length, const int oldStartIdx, const int newStartIdx)
 move memory blocks backwards More...
 
static void memMoveForward (ArrayType &array, const int length, const int oldStartIdx, const int newStartIdx)
 move memory blocks forward More...
 
static void assign (ArrayType &array, const int newIndex, const int oldIndex)
 implements array[ newIndex ] = array[ oldIndex ] More...
 

Detailed Description

template<class ArrayType>
struct Dune::Fem::SpecialArrayFeatures< ArrayType >

SpecialArrayFeatures is a wrapper class to extend some array classes with some special features needed for the MemObject. There exsist a specialization for MutableArray and PetscVector.

Member Typedef Documentation

template<class ArrayType >
typedef ArrayType :: value_type Dune::Fem::SpecialArrayFeatures< ArrayType >::ValueType

value type of array, i.e. double

Member Function Documentation

template<class ArrayType >
static void Dune::Fem::SpecialArrayFeatures< ArrayType >::assign ( ArrayType &  array,
const int  newIndex,
const int  oldIndex 
)
inlinestatic

implements array[ newIndex ] = array[ oldIndex ]

Referenced by Dune::Fem::ManagedDofStorageImplementation< GridImp, MapperType, DofArrayType >::dofCompress().

template<class ArrayType >
static void Dune::Fem::SpecialArrayFeatures< ArrayType >::memMoveBackward ( ArrayType &  array,
const int  length,
const int  oldStartIdx,
const int  newStartIdx 
)
inlinestatic
template<class ArrayType >
static void Dune::Fem::SpecialArrayFeatures< ArrayType >::memMoveForward ( ArrayType &  array,
const int  length,
const int  oldStartIdx,
const int  newStartIdx 
)
inlinestatic
template<class ArrayType >
static void Dune::Fem::SpecialArrayFeatures< ArrayType >::setMemoryFactor ( ArrayType &  array,
const double  memFactor 
)
inlinestatic
template<class ArrayType >
static size_t Dune::Fem::SpecialArrayFeatures< ArrayType >::used ( const ArrayType &  array)
inlinestatic

return used memory size of Array

Referenced by Dune::Fem::DofManager< Grid >::usedMemorySize().


The documentation for this struct was generated from the following files: