Dune::cpgrid::Entity2IndexDataHandle< DataHandle, codim > Class Template Reference

Wrapper that turns a data handle suitable for dune-grid into one based on integers instead of entities. More...

#include <Entity2IndexDataHandle.hpp>

Public Types

typedef DataHandle::DataType DataType
 

Public Member Functions

 Entity2IndexDataHandle (const CpGridData &grid, DataHandle &data)
 
 Entity2IndexDataHandle (const CpGridData &fromGrid, const CpGridData &toGrid, DataHandle &data)
 
bool fixedsize ()
 
std::size_t size (std::size_t i)
 
template<class B >
void gather (B &buffer, std::size_t i)
 
template<class B >
void scatter (B &buffer, std::size_t i, std::size_t s)
 

Detailed Description

template<class DataHandle, int codim>
class Dune::cpgrid::Entity2IndexDataHandle< DataHandle, codim >

Wrapper that turns a data handle suitable for dune-grid into one based on integers instead of entities.

Template Parameters
DataHandleThe type of the data handle to wrap. Has to adhere to the interface of Dune::DataHandleIf
codimThe codimension to use when mapping indices to Entities.

Member Typedef Documentation

◆ DataType

template<class DataHandle , int codim>
typedef DataHandle::DataType Dune::cpgrid::Entity2IndexDataHandle< DataHandle, codim >::DataType

Constructor & Destructor Documentation

◆ Entity2IndexDataHandle() [1/2]

template<class DataHandle , int codim>
Dune::cpgrid::Entity2IndexDataHandle< DataHandle, codim >::Entity2IndexDataHandle ( const CpGridData grid,
DataHandle &  data 
)
inline

◆ Entity2IndexDataHandle() [2/2]

template<class DataHandle , int codim>
Dune::cpgrid::Entity2IndexDataHandle< DataHandle, codim >::Entity2IndexDataHandle ( const CpGridData fromGrid,
const CpGridData toGrid,
DataHandle &  data 
)
inline

Member Function Documentation

◆ fixedsize()

template<class DataHandle , int codim>
bool Dune::cpgrid::Entity2IndexDataHandle< DataHandle, codim >::fixedsize ( )
inline

◆ gather()

template<class DataHandle , int codim>
template<class B >
void Dune::cpgrid::Entity2IndexDataHandle< DataHandle, codim >::gather ( B &  buffer,
std::size_t  i 
)
inline

References buffer.

◆ scatter()

template<class DataHandle , int codim>
template<class B >
void Dune::cpgrid::Entity2IndexDataHandle< DataHandle, codim >::scatter ( B &  buffer,
std::size_t  i,
std::size_t  s 
)
inline

References buffer.

◆ size()

template<class DataHandle , int codim>
std::size_t Dune::cpgrid::Entity2IndexDataHandle< DataHandle, codim >::size ( std::size_t  i)
inline

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