comm_service Class Reference

#include <CommServer.h>

Inheritance diagram for comm_service:
DAGHIOServerPing DAGHIOServerRcv DAGHIOServerSnd GridTableDataRcv GridTableGhostRcv

List of all members.

Public Member Functions

MPI_Request * req (void) const
int tag (void) const

Static Public Member Functions

static int init (MPI_Comm c=0)
static void clean ()
static void kill ()
static int serve (MPI_Request)
static int serve (bool nonblocking=true)
static std::ofstream & flog (void)
static std::ostream & log (void)
static int dce (void)
static int proc_me (void)
static int proc_num (void)
static MPI_Comm comm (void)
static MPI_Group grp (void)
static int num_services (void)
static int comminit (void)
static void set_comminit (void)
static void reset_comminit (void)
static int io_enabled (void)
static void set_io_enable (void)
static void reset_io_enable (void)
static int proc_io (void)
static MPI_Comm comm_io (void)
static MPI_Comm comm_world (void)
static int proc_world (void)
static MPI_Group grp_world (void)
static MPI_Comm comm (int const id)
static int num_comm (void)
static void add_comm (int const id)
static void delete_comm (int const id)
static void reset_comm (int const id)
static void inc_commarray (int const inc)
static double idle_time (void)
static double srvc_time (void)
static void error_msg (const char who[], const char what[], int R)
static void error_die (const char who[], const char what[], int R)

Protected Member Functions

 comm_service (const int I, const int T, const int S=MPI_ANY_SOURCE)
 comm_service ()
virtual ~comm_service ()
virtual void callrecv (const MPI_Status &)
virtual const char * name (void) const
void setreq (const int, const int, const int)

Protected Attributes

const int Id
const int Tag
const int Src

Constructor & Destructor Documentation

comm_service::comm_service ( const int  I,
const int  T,
const int  S = MPI_ANY_SOURCE 
) [protected]

References CommIncrement, flog(), Id, init(), Src, and Tag.

comm_service::comm_service (  )  [protected]

References CommIncrement, flog(), and init().

comm_service::~comm_service (  )  [protected, virtual]

References CommIncrement, flog(), Id, Src, and Tag.


Member Function Documentation

void comm_service::add_comm ( int const   id  )  [static]
void comm_service::callrecv ( const MPI_Status &  MS  )  [protected, virtual]
void comm_service::clean ( void   )  [static]

References flog(), proc_io(), proc_me(), and serve().

Referenced by kill().

static MPI_Comm comm_service::comm ( int const   id  )  [inline, static]
static MPI_Comm comm_service::comm_world ( void   )  [inline, static]
static int comm_service::comminit ( void   )  [inline, static]
void comm_service::delete_comm ( int const   id  )  [static]
void comm_service::error_msg ( const char  who[],
const char  what[],
int  R 
) [static]

Referenced by error_die().

std::ofstream & comm_service::flog ( void   )  [static]
static MPI_Group comm_service::grp ( void   )  [inline, static]
static MPI_Group comm_service::grp_world ( void   )  [inline, static]
static double comm_service::idle_time ( void   )  [inline, static]
void comm_service::inc_commarray ( int const   inc  )  [static]
int comm_service::init ( MPI_Comm  c = 0  )  [static]

References CommIncrement, and flog().

Referenced by comm_service(), and if().

static int comm_service::io_enabled ( void   )  [inline, static]
void comm_service::kill ( void   )  [static]

References clean(), and flog().

static std::ostream& comm_service::log ( void   )  [inline, static]
const char * comm_service::name ( void   )  const [protected, virtual]
static int comm_service::num_comm ( void   )  [inline, static]
static int comm_service::num_services ( void   )  [inline, static]
static int comm_service::proc_io ( void   )  [inline, static]
void comm_service::reset_comm ( int const   id  )  [static]
static void comm_service::reset_comminit ( void   )  [inline, static]
static void comm_service::reset_io_enable ( void   )  [inline, static]
int comm_service::serve ( bool  nonblocking = true  )  [static]

References callrecv(), COUNT, flog(), and name().

static void comm_service::set_comminit ( void   )  [inline, static]
static void comm_service::set_io_enable ( void   )  [inline, static]
void comm_service::setreq ( const int  I,
const int  T,
const int  S 
) [protected]
static double comm_service::srvc_time ( void   )  [inline, static]
int comm_service::tag ( void   )  const [inline]

References Tag.


Member Data Documentation


The documentation for this class was generated from the following files:
Generated on Thu Jun 30 02:19:00 2016 for AMROC's Hierachical Data Structures by  doxygen 1.6.3