dune-pdelab  2.5-dev
Public Types | Public Member Functions | Static Public Attributes | List of all members
Dune::PDELab::AddClearDataHandle< GFS, V > Class Template Reference

#include <dune/pdelab/gridfunctionspace/genericdatahandle.hh>

Inheritance diagram for Dune::PDELab::AddClearDataHandle< GFS, V >:
Inheritance graph

Public Types

typedef DOFDataCommunicationDescriptor< typename V::ElementType > ::DataType DataType
 
typedef GFS::Traits::SizeType size_type
 

Public Member Functions

 AddClearDataHandle (const GFS &gfs_, V &v_)
 
bool contains (int dim, int codim) const
 returns true if data for this codim should be communicated More...
 
bool fixedsize (int dim, int codim) const
 returns true if size per entity of given dim and codim is a constant More...
 
size_type size (const Entity &e) const
 how many objects of type DataType have to be sent for a given entity More...
 
std::enable_if< DOFDataCommunicationDescriptor< typename V::ElementType > ::wrap_buffer &&AlwaysTrue< Entity >::value >::type gather (MessageBuffer &buff, const Entity &e) const
 pack data from user to message buffer - version with support for sending leaf ordering sizes More...
 
std::enable_if< !DOFDataCommunicationDescriptor< typename V::ElementType > ::wrap_buffer &&AlwaysTrue< Entity >::value >::type gather (MessageBuffer &buff, const Entity &e) const
 pack data from user to message buffer - version without support for sending leaf ordering sizes More...
 
std::enable_if< DOFDataCommunicationDescriptor< typename V::ElementType > ::wrap_buffer &&AlwaysTrue< Entity >::value >::type scatter (MessageBuffer &buff, const Entity &e, size_type n)
 unpack data from message buffer to user More...
 
std::enable_if< !DOFDataCommunicationDescriptor< typename V::ElementType > ::wrap_buffer &&AlwaysTrue< Entity >::value >::type scatter (MessageBuffer &buff, const Entity &e, size_type n)
 unpack data from message buffer to user More...
 

Static Public Attributes

static const size_type leaf_count
 

Member Typedef Documentation

◆ DataType

typedef DOFDataCommunicationDescriptor<typename V::ElementType> ::DataType Dune::PDELab::GFSDataHandle< GFS, V, DataGatherScatter< AddClearGatherScatter > , DOFDataCommunicationDescriptor<typename V::ElementType> >::DataType
inherited

◆ size_type

typedef GFS::Traits::SizeType Dune::PDELab::GFSDataHandle< GFS, V, DataGatherScatter< AddClearGatherScatter > , DOFDataCommunicationDescriptor<typename V::ElementType> >::size_type
inherited

Constructor & Destructor Documentation

◆ AddClearDataHandle()

template<class GFS , class V >
Dune::PDELab::AddClearDataHandle< GFS, V >::AddClearDataHandle ( const GFS &  gfs_,
V &  v_ 
)
inline

Member Function Documentation

◆ contains()

bool Dune::PDELab::GFSDataHandle< GFS, V, DataGatherScatter< AddClearGatherScatter > , DOFDataCommunicationDescriptor<typename V::ElementType> >::contains ( int  dim,
int  codim 
) const
inlineinherited

returns true if data for this codim should be communicated

◆ fixedsize()

bool Dune::PDELab::GFSDataHandle< GFS, V, DataGatherScatter< AddClearGatherScatter > , DOFDataCommunicationDescriptor<typename V::ElementType> >::fixedsize ( int  dim,
int  codim 
) const
inlineinherited

returns true if size per entity of given dim and codim is a constant

◆ gather() [1/2]

std::enable_if< DOFDataCommunicationDescriptor<typename V::ElementType> ::wrap_buffer && AlwaysTrue<Entity>::value >::type Dune::PDELab::GFSDataHandle< GFS, V, DataGatherScatter< AddClearGatherScatter > , DOFDataCommunicationDescriptor<typename V::ElementType> >::gather ( MessageBuffer &  buff,
const Entity &  e 
) const
inlineinherited

pack data from user to message buffer - version with support for sending leaf ordering sizes

◆ gather() [2/2]

std::enable_if< !DOFDataCommunicationDescriptor<typename V::ElementType> ::wrap_buffer && AlwaysTrue<Entity>::value >::type Dune::PDELab::GFSDataHandle< GFS, V, DataGatherScatter< AddClearGatherScatter > , DOFDataCommunicationDescriptor<typename V::ElementType> >::gather ( MessageBuffer &  buff,
const Entity &  e 
) const
inlineinherited

pack data from user to message buffer - version without support for sending leaf ordering sizes

◆ scatter() [1/2]

std::enable_if< DOFDataCommunicationDescriptor<typename V::ElementType> ::wrap_buffer && AlwaysTrue<Entity>::value >::type Dune::PDELab::GFSDataHandle< GFS, V, DataGatherScatter< AddClearGatherScatter > , DOFDataCommunicationDescriptor<typename V::ElementType> >::scatter ( MessageBuffer &  buff,
const Entity &  e,
size_type  n 
)
inlineinherited

unpack data from message buffer to user

n is the number of objects sent by the sender

This is the version with support for receiving leaf ordering sizes

◆ scatter() [2/2]

std::enable_if< !DOFDataCommunicationDescriptor<typename V::ElementType> ::wrap_buffer && AlwaysTrue<Entity>::value >::type Dune::PDELab::GFSDataHandle< GFS, V, DataGatherScatter< AddClearGatherScatter > , DOFDataCommunicationDescriptor<typename V::ElementType> >::scatter ( MessageBuffer &  buff,
const Entity &  e,
size_type  n 
)
inlineinherited

unpack data from message buffer to user

n is the number of objects sent by the sender

This is the version without support for receiving leaf ordering sizes

◆ size()

size_type Dune::PDELab::GFSDataHandle< GFS, V, DataGatherScatter< AddClearGatherScatter > , DOFDataCommunicationDescriptor<typename V::ElementType> >::size ( const Entity &  e) const
inlineinherited

how many objects of type DataType have to be sent for a given entity

Note: Only the sender side needs to know this size.

Member Data Documentation

◆ leaf_count

const size_type Dune::PDELab::GFSDataHandle< GFS, V, DataGatherScatter< AddClearGatherScatter > , DOFDataCommunicationDescriptor<typename V::ElementType> >::leaf_count
staticinherited

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