angel  mercurial changeset:
GMPI::Comm Class Reference

#include <gmpi.hpp>

Inheritance diagram for GMPI::Comm:

List of all members.

Public Member Functions

 Comm (const MPI::Intracomm &mpi_comm)
MPI::Intracomm & mpi_comm_ref ()
const MPI::Intracomm & mpi_comm_ref () const
template<typename Comm_ref_t >
void Send (const Comm_ref_t &data, int dest, int tag) const
 Send data to dest marked with tag.
template<typename Comm_ref_t >
void Recv (Comm_ref_t &data, int source, int tag, MPI::Status &status) const
int Get_size () const
int Get_rank () const

Protected Attributes

MPI::Intracomm my_comm

Detailed Description

Definition at line 248 of file gmpi.hpp.


Constructor & Destructor Documentation

GMPI::Comm::Comm ( const MPI::Intracomm &  mpi_comm) [inline]

Definition at line 252 of file gmpi.hpp.


Member Function Documentation

int GMPI::Comm::Get_rank ( ) const [inline]

Definition at line 266 of file gmpi.hpp.

References my_comm.

Referenced by GMPI::Intracomm::Bcast().

int GMPI::Comm::Get_size ( ) const [inline]

Definition at line 264 of file gmpi.hpp.

References my_comm.

MPI::Intracomm& GMPI::Comm::mpi_comm_ref ( ) [inline]

Definition at line 254 of file gmpi.hpp.

References my_comm.

const MPI::Intracomm& GMPI::Comm::mpi_comm_ref ( ) const [inline]

Definition at line 255 of file gmpi.hpp.

References my_comm.

template<class Comm_ref_t >
void GMPI::Comm::Recv ( Comm_ref_t &  data,
int  source,
int  tag,
MPI::Status &  status 
) const

Definition at line 24 of file gmpi_impl.hpp.

References GMPI::buffer_t< Base_t >::address(), GMPI::buffer_t< Base_t >::mpi_t, my_comm, and GMPI::buffer_t< Base_t >::reserve().

Here is the call graph for this function:

template<class Comm_ref_t >
void GMPI::Comm::Send ( const Comm_ref_t &  data,
int  dest,
int  tag 
) const

Send data to dest marked with tag.

Definition at line 14 of file gmpi_impl.hpp.

References GMPI::buffer_t< Base_t >::address(), GMPI::buffer_t< Base_t >::mpi_t, my_comm, and GMPI::buffer_t< Base_t >::size().

Here is the call graph for this function:


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines