dune-fem 2.8.0
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Protected Types | Protected Attributes | List of all members
Dune::Fem::DefaultCommunicationHandler< DiscreteFunction, Operation > Class Template Reference

Default communication handler for discrete functions. More...

#include <dune/fem/space/common/defaultcommhandler.hh>

Inheritance diagram for Dune::Fem::DefaultCommunicationHandler< DiscreteFunction, Operation >:
Inheritance graph

Public Types

typedef BaseType::DataType DataType
 
typedef DiscreteFunction DiscreteFunctionType
 
typedef DiscreteFunctionType::DiscreteFunctionSpaceType DiscreteFunctionSpaceType
 

Public Member Functions

 DefaultCommunicationHandler (DiscreteFunctionType &function, const Operation &operation=Operation())
 
 DefaultCommunicationHandler (const DefaultCommunicationHandler &other)
 
DefaultCommunicationHandleroperator= (const DefaultCommunicationHandler &)=delete
 cannot be implemented because of the reference
 
bool contains (int dim, int codim) const
 
bool fixedSize (int dim, int codim) const
 
template<class MessageBuffer , class Entity >
void gather (MessageBuffer &buffer, const Entity &entity) const
 read buffer and apply operation
 
template<class MessageBuffer , class Entity >
void scatter (MessageBuffer &buffer, const Entity &entity, size_t n)
 read buffer and apply operation
 
template<class Entity >
size_t size (const Entity &entity) const
 return local dof size to be communicated
 

Protected Types

typedef DiscreteFunctionSpaceType::BlockMapperType BlockMapperType
 
typedef DiscreteFunctionSpaceType::LocalBlockIndices LocalBlockIndices
 

Protected Attributes

DiscreteFunctionType *const function_
 
const BlockMapperTypeblockMapper_
 
const Operation operation_
 

Detailed Description

template<class DiscreteFunction, class Operation = DFCommunicationOperation::Add>
class Dune::Fem::DefaultCommunicationHandler< DiscreteFunction, Operation >

Default communication handler for discrete functions.

Parameters
DiscreteFunctiontype of discrete function to be communicated

Member Typedef Documentation

◆ BlockMapperType

template<class DiscreteFunction , class Operation = DFCommunicationOperation::Add>
typedef DiscreteFunctionSpaceType::BlockMapperType Dune::Fem::DefaultCommunicationHandler< DiscreteFunction, Operation >::BlockMapperType
protected

◆ DataType

template<class DiscreteFunction , class Operation = DFCommunicationOperation::Add>
typedef BaseType::DataType Dune::Fem::DefaultCommunicationHandler< DiscreteFunction, Operation >::DataType

◆ DiscreteFunctionSpaceType

template<class DiscreteFunction , class Operation = DFCommunicationOperation::Add>
typedef DiscreteFunctionType::DiscreteFunctionSpaceType Dune::Fem::DefaultCommunicationHandler< DiscreteFunction, Operation >::DiscreteFunctionSpaceType

◆ DiscreteFunctionType

template<class DiscreteFunction , class Operation = DFCommunicationOperation::Add>
typedef DiscreteFunction Dune::Fem::DefaultCommunicationHandler< DiscreteFunction, Operation >::DiscreteFunctionType

◆ LocalBlockIndices

template<class DiscreteFunction , class Operation = DFCommunicationOperation::Add>
typedef DiscreteFunctionSpaceType::LocalBlockIndices Dune::Fem::DefaultCommunicationHandler< DiscreteFunction, Operation >::LocalBlockIndices
protected

Constructor & Destructor Documentation

◆ DefaultCommunicationHandler() [1/2]

template<class DiscreteFunction , class Operation = DFCommunicationOperation::Add>
Dune::Fem::DefaultCommunicationHandler< DiscreteFunction, Operation >::DefaultCommunicationHandler ( DiscreteFunctionType function,
const Operation &  operation = Operation() 
)
inline

◆ DefaultCommunicationHandler() [2/2]

template<class DiscreteFunction , class Operation = DFCommunicationOperation::Add>
Dune::Fem::DefaultCommunicationHandler< DiscreteFunction, Operation >::DefaultCommunicationHandler ( const DefaultCommunicationHandler< DiscreteFunction, Operation > &  other)
inline

Member Function Documentation

◆ contains()

template<class DiscreteFunction , class Operation = DFCommunicationOperation::Add>
bool Dune::Fem::DefaultCommunicationHandler< DiscreteFunction, Operation >::contains ( int  dim,
int  codim 
) const
inline

◆ fixedSize()

template<class DiscreteFunction , class Operation = DFCommunicationOperation::Add>
bool Dune::Fem::DefaultCommunicationHandler< DiscreteFunction, Operation >::fixedSize ( int  dim,
int  codim 
) const
inline

◆ gather()

template<class DiscreteFunction , class Operation = DFCommunicationOperation::Add>
template<class MessageBuffer , class Entity >
void Dune::Fem::DefaultCommunicationHandler< DiscreteFunction, Operation >::gather ( MessageBuffer &  buffer,
const Entity &  entity 
) const
inline

read buffer and apply operation

◆ operator=()

template<class DiscreteFunction , class Operation = DFCommunicationOperation::Add>
DefaultCommunicationHandler & Dune::Fem::DefaultCommunicationHandler< DiscreteFunction, Operation >::operator= ( const DefaultCommunicationHandler< DiscreteFunction, Operation > &  )
delete

cannot be implemented because of the reference

◆ scatter()

template<class DiscreteFunction , class Operation = DFCommunicationOperation::Add>
template<class MessageBuffer , class Entity >
void Dune::Fem::DefaultCommunicationHandler< DiscreteFunction, Operation >::scatter ( MessageBuffer &  buffer,
const Entity &  entity,
size_t  n 
)
inline

read buffer and apply operation

◆ size()

template<class DiscreteFunction , class Operation = DFCommunicationOperation::Add>
template<class Entity >
size_t Dune::Fem::DefaultCommunicationHandler< DiscreteFunction, Operation >::size ( const Entity &  entity) const
inline

return local dof size to be communicated

Member Data Documentation

◆ blockMapper_

template<class DiscreteFunction , class Operation = DFCommunicationOperation::Add>
const BlockMapperType& Dune::Fem::DefaultCommunicationHandler< DiscreteFunction, Operation >::blockMapper_
protected

◆ function_

template<class DiscreteFunction , class Operation = DFCommunicationOperation::Add>
DiscreteFunctionType* const Dune::Fem::DefaultCommunicationHandler< DiscreteFunction, Operation >::function_
protected

◆ operation_

template<class DiscreteFunction , class Operation = DFCommunicationOperation::Add>
const Operation Dune::Fem::DefaultCommunicationHandler< DiscreteFunction, Operation >::operation_
protected

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