dune-pdelab  2.4-dev
Public Types | Public Member Functions | List of all members
VectorExchange< GV, V > Class Template Reference

#include <dune/pdelab/localoperator/darcy_CCFV.hh>

Inheritance diagram for VectorExchange< GV, V >:
Inheritance graph

Public Types

typedef V::value_type DataType
 export type of data for message buffer More...
 

Public Member Functions

 VectorExchange (const GV &gv_, V &c_)
 constructor More...
 
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...
 
template<class EntityType >
size_t size (EntityType &e) const
 
template<class MessageBuffer , class EntityType >
void gather (MessageBuffer &buff, const EntityType &e) const
 pack data from user to message buffer More...
 
template<class MessageBuffer , class EntityType >
void scatter (MessageBuffer &buff, const EntityType &e, size_t n)
 

Member Typedef Documentation

template<class GV, class V>
typedef V::value_type VectorExchange< GV, V >::DataType

export type of data for message buffer

Constructor & Destructor Documentation

template<class GV, class V>
VectorExchange< GV, V >::VectorExchange ( const GV &  gv_,
V &  c_ 
)
inline

constructor

Member Function Documentation

template<class GV, class V>
bool VectorExchange< GV, V >::contains ( int  dim,
int  codim 
) const
inline

returns true if data for this codim should be communicated

template<class GV, class V>
bool VectorExchange< GV, V >::fixedsize ( int  dim,
int  codim 
) const
inline

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

template<class GV, class V>
template<class MessageBuffer , class EntityType >
void VectorExchange< GV, V >::gather ( MessageBuffer &  buff,
const EntityType &  e 
) const
inline

pack data from user to message buffer

template<class GV, class V>
template<class MessageBuffer , class EntityType >
void VectorExchange< GV, V >::scatter ( MessageBuffer &  buff,
const EntityType &  e,
size_t  n 
)
inline

unpack data from message buffer to user

n is the number of objects sent by the sender

template<class GV, class V>
template<class EntityType >
size_t VectorExchange< GV, V >::size ( EntityType &  e) const
inline

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

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


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