NEOCCA bindings Specification  0.2.8
MPISetup.hh
Go to the documentation of this file.
1 #ifndef neo_support_MPISetup_hh_seen
2 #define neo_support_MPISetup_hh_seen
3 
4 namespace neo {
5 namespace support {
6 
11 class MPISetup
12 {
13 
14 private:
15 
18  neo::cca::ports::MPIService *mpis;
19  neo::cca::ports::MPIBorrow *mpib;
21  bool finalized;
22 
23 public:
24 
25  MPISetup();
26  ~MPISetup();
27 
38  void initialize(MPI_Comm borrowComm, MPI_Comm dupComm, neo::cca::AbstractFramework *naf);
39 
46  void finalize(bool reclaim);
47 
48 };
49 
50 } // end namespace support
51 } // end namespace neo
52 
53 #endif // neo_support_MPISetup_hh_seen
Memory lifecycle:
Definition: AbstractFramework.hh:16
neo::cca::ports::ServiceRegistry * sr
Definition: MPISetup.hh:20
void initialize(MPI_Comm borrowComm, MPI_Comm dupComm, neo::cca::AbstractFramework *naf)
Create and add to the framework MPIService and MPIBorrow support services.
The handle through which the component communicates with its containing framework.
Definition: Services.hh:16
void finalize(bool reclaim)
Shutdown the previous mpi-related services.
neo::cca::ports::MPIBorrow * mpib
Definition: MPISetup.hh:19
bool finalized
Definition: MPISetup.hh:21
neo::cca::ports::MPIService * mpis
Definition: MPISetup.hh:18
Implementation that can be reused by driver writers.
Definition: MPISetup.hh:11
NOT YET DEFINED IN CCA.SIDL: ServiceRegistry is a Port that is primordially provided by the framework...
Definition: ServiceRegistry.hh:14
neo::cca::AbstractFramework * naf
Definition: MPISetup.hh:17
neo::cca::Services * ms
Definition: MPISetup.hh:16
This is neoclassic – the ::classic::gov::cca headers updated to be similar to the official CCA speci...
Definition: neocca.hh:62