dune-fem 2.12-git
Loading...
Searching...
No Matches
Dune::Fem::DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation > Class Template Reference

Default communication handler for discrete functions. More...

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

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

Public Types

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

Public Member Functions

 DefaultCommunicationHandlerImpl (const DiscreteFunctionSpaceType &space, DiscreteFunctionType &function, const Operation &operation=Operation())
 
 DefaultCommunicationHandlerImpl (DiscreteFunctionType &function, const Operation &operation=Operation())
 
 DefaultCommunicationHandlerImpl (const DefaultCommunicationHandlerImpl &other)
 
DefaultCommunicationHandlerImploperator= (const DefaultCommunicationHandlerImpl &)=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
 
size_t size (const EntityType &e) const
 
void gather (MessageBufferImp &buff, const EntityType &e) const
 
void scatter (MessageBufferImp &buff, const EntityType &e, size_t n)
 

Protected Types

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

Protected Attributes

DiscreteFunctionType *const function_
 
const BlockMapperTypeblockMapper_
 
const Operation operation_
 

Static Protected Attributes

static constexpr bool isDiscreteFunction = std::is_base_of< IsDiscreteFunction, DiscreteFunction > :: value
 

Detailed Description

template<class DiscreteFunctionSpace, class DiscreteFunction, class Operation>
class Dune::Fem::DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation >

Default communication handler for discrete functions.

Parameters
DiscreteFunctiontype of discrete function to be communicated
Template Parameters
DiscreteFunctiontype of discrete function to be communicated
Operation

Member Typedef Documentation

◆ BlockMapperType

template<class DiscreteFunctionSpace , class DiscreteFunction , class Operation >
typedef DiscreteFunctionSpaceType::BlockMapperType Dune::Fem::DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation >::BlockMapperType
protected

◆ DataType

template<class DiscreteFunctionSpace , class DiscreteFunction , class Operation >
typedef BaseType::DataType Dune::Fem::DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation >::DataType

◆ DiscreteFunctionSpaceType

template<class DiscreteFunctionSpace , class DiscreteFunction , class Operation >
typedef DiscreteFunctionSpace Dune::Fem::DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation >::DiscreteFunctionSpaceType

◆ DiscreteFunctionType

template<class DiscreteFunctionSpace , class DiscreteFunction , class Operation >
typedef DiscreteFunction Dune::Fem::DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation >::DiscreteFunctionType

◆ LocalBlockIndices

template<class DiscreteFunctionSpace , class DiscreteFunction , class Operation >
typedef DiscreteFunctionSpaceType::LocalBlockIndices Dune::Fem::DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation >::LocalBlockIndices
protected

Constructor & Destructor Documentation

◆ DefaultCommunicationHandlerImpl() [1/3]

template<class DiscreteFunctionSpace , class DiscreteFunction , class Operation >
Dune::Fem::DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation >::DefaultCommunicationHandlerImpl ( const DiscreteFunctionSpaceType space,
DiscreteFunctionType function,
const Operation &  operation = Operation() 
)
inline

◆ DefaultCommunicationHandlerImpl() [2/3]

template<class DiscreteFunctionSpace , class DiscreteFunction , class Operation >
Dune::Fem::DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation >::DefaultCommunicationHandlerImpl ( DiscreteFunctionType function,
const Operation &  operation = Operation() 
)
inline

◆ DefaultCommunicationHandlerImpl() [3/3]

template<class DiscreteFunctionSpace , class DiscreteFunction , class Operation >
Dune::Fem::DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation >::DefaultCommunicationHandlerImpl ( const DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation > &  other)
inline

Member Function Documentation

◆ contains()

template<class DiscreteFunctionSpace , class DiscreteFunction , class Operation >
bool Dune::Fem::DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation >::contains ( int  dim,
int  codim 
) const
inline

◆ fixedSize()

template<class DiscreteFunctionSpace , class DiscreteFunction , class Operation >
bool Dune::Fem::DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation >::fixedSize ( int  dim,
int  codim 
) const
inline

◆ gather()

template<class DiscreteFunctionSpace , class DiscreteFunction , class Operation >
template<class MessageBuffer , class Entity >
void Dune::Fem::DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation >::gather ( MessageBuffer &  buffer,
const Entity entity 
) const
inline

read buffer and apply operation

◆ operator=()

template<class DiscreteFunctionSpace , class DiscreteFunction , class Operation >
DefaultCommunicationHandlerImpl & Dune::Fem::DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation >::operator= ( const DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation > &  )
delete

cannot be implemented because of the reference

◆ scatter()

template<class DiscreteFunctionSpace , class DiscreteFunction , class Operation >
template<class MessageBuffer , class Entity >
void Dune::Fem::DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation >::scatter ( MessageBuffer &  buffer,
const Entity entity,
size_t  n 
)
inline

read buffer and apply operation

◆ size()

template<class DiscreteFunctionSpace , class DiscreteFunction , class Operation >
template<class Entity >
size_t Dune::Fem::DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation >::size ( const Entity entity) const
inline

return local dof size to be communicated

Member Data Documentation

◆ blockMapper_

template<class DiscreteFunctionSpace , class DiscreteFunction , class Operation >
const BlockMapperType& Dune::Fem::DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation >::blockMapper_
protected

◆ function_

template<class DiscreteFunctionSpace , class DiscreteFunction , class Operation >
DiscreteFunctionType* const Dune::Fem::DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation >::function_
protected

◆ isDiscreteFunction

template<class DiscreteFunctionSpace , class DiscreteFunction , class Operation >
constexpr bool Dune::Fem::DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation >::isDiscreteFunction = std::is_base_of< IsDiscreteFunction, DiscreteFunction > :: value
staticconstexprprotected

◆ operation_

template<class DiscreteFunctionSpace , class DiscreteFunction , class Operation >
const Operation Dune::Fem::DefaultCommunicationHandlerImpl< DiscreteFunctionSpace, DiscreteFunction, Operation >::operation_
protected

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