dune-common  2.2.1
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Dune::Interface Class Reference

Communication interface between remote and local indices. More...

#include <dune/common/parallel/interface.hh>

Inheritance diagram for Dune::Interface:
Dune::InterfaceBuilder

Classes

class  InformationBuilder

Public Types

typedef InterfaceInformation Information
typedef std::map< int,
std::pair< Information,
Information > > 
InformationMap

Public Member Functions

template<typename R , typename T1 , typename T2 >
void build (const R &remoteIndices, const T1 &sourceFlags, const T2 &destFlags)
 Builds the interface.
void free ()
 Frees memory allocated during the build.
MPI_Comm communicator () const
 Get the MPI Communicator.
const InformationMapinterfaces () const
 Get information about the interfaces.
 Interface (MPI_Comm comm)
 Interface ()
void print () const
 Print the interface to std::out for debugging.
bool operator!= (const Interface &o) const
bool operator== (const Interface &o) const
virtual ~Interface ()
 Destructor.
void strip ()

Protected Member Functions

InformationMapinterfaces ()
 Get information about the interfaces.
template<class R , class T1 , class T2 , class Op , bool send>
void buildInterface (const R &remoteIndices, const T1 &sourceFlags, const T2 &destFlags, Op &functor) const
 Builds the interface between remote processes.

Protected Attributes

MPI_Comm communicator_
 The MPI communicator we use.

Detailed Description

Communication interface between remote and local indices.

Describes the communication interface between indices on the local process and those on remote processes.

Member Typedef Documentation

typedef std::map<int,std::pair<Information,Information> > Dune::Interface::InformationMap

Constructor & Destructor Documentation

Dune::Interface::Interface ( MPI_Comm  comm)
inline
Dune::Interface::Interface ( )
inline

Member Function Documentation

bool Dune::Interface::operator!= ( const Interface o) const
inline

References operator==().

bool Dune::Interface::operator== ( const Interface o) const
inline

References communicator_.

Referenced by operator!=().

Member Data Documentation

MPI_Comm Dune::Interface::communicator_
protected

The MPI communicator we use.

Referenced by build(), communicator(), and operator==().


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