GMPI::Comm Class Reference

#include <gmpi.hpp>

Inheritance diagram for GMPI::Comm:

Inheritance graph
[legend]

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 240 of file gmpi.hpp.


Constructor & Destructor Documentation

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

Definition at line 244 of file gmpi.hpp.


Member Function Documentation

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

Definition at line 246 of file gmpi.hpp.

References my_comm.

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

Definition at line 247 of file gmpi.hpp.

References my_comm.

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

Send data to dest marked with tag.

Definition at line 6 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:

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

Definition at line 16 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:

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

Definition at line 256 of file gmpi.hpp.

References my_comm.

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

Definition at line 258 of file gmpi.hpp.

References my_comm.

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


Member Data Documentation

MPI::Intracomm GMPI::Comm::my_comm [protected]

Definition at line 242 of file gmpi.hpp.

Referenced by GMPI::Intracomm::Allreduce(), GMPI::Intracomm::Barrier(), GMPI::Intracomm::Bcast(), GMPI::Intracomm::Gather(), Get_rank(), Get_size(), mpi_comm_ref(), Recv(), and Send().


The documentation for this class was generated from the following files:
Generated on Wed Mar 11 10:35:19 2009 for angel by  doxygen 1.5.3