PaCO++  0.05
paco_mpcircuit.h
Go to the documentation of this file.
00001 #ifndef __paco_mpcircuit_h_
00002 #define __paco_mpcircuit_h_
00003 
00004 #include "paco_com.h"
00005 #include <Padico/MPCircuit.h>
00006 
00007 class paco_mpcircuit : public paco_com
00008 {
00009  public:
00010   paco_mpcircuit(void * group);
00011   ~paco_mpcircuit();
00012 
00013   int paco_rank(int  * rank);
00014   int paco_barrier();
00015 
00016   //  void paco_group(padico_mpcircuit_t group);
00017   int paco_bcast(void* buf, int count, int root);
00018 
00019  protected:
00020   padico_mpcircuit_t my_group_id;
00021 };
00022 
00023 class paco_mpcircuit_fabrique : public paco_fabrique_com {
00024 public:
00025   paco_com* paco_create(void* group) {
00026     return new paco_mpcircuit(group);
00027   }
00028 };
00029 #endif