Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
MPI_Win (RMA) -> C++
[simgrid.git] / include / smpi / forward.hpp
1 /* Copyright (c) 2016. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef SIMGRID_SMPI_FORWARD_HPP
7 #define SIMGRID_SMPI_FORWARD_HPP
8
9
10 #ifdef __cplusplus
11
12 #include <boost/intrusive_ptr.hpp>
13 namespace simgrid {
14 namespace smpi {
15
16 class Group;
17 class Comm;
18 class Topo;
19 class Win;
20 class Cart;
21 class Graph;
22 class Dist_Graph;
23
24 }
25 }
26
27 typedef simgrid::smpi::Group SMPI_Group;
28 typedef simgrid::smpi::Comm SMPI_Comm;
29 typedef simgrid::smpi::Topo SMPI_Topology;
30 typedef simgrid::smpi::Win SMPI_Win;
31 typedef simgrid::smpi::Graph SMPI_Graph_topology;
32 typedef simgrid::smpi::Cart SMPI_Cart_topology;
33 typedef simgrid::smpi::Dist_Graph SMPI_Dist_Graph_topology;
34
35 #else
36
37 typedef struct SMPI_Group SMPI_Group;
38 typedef struct SMPI_Comm SMPI_Comm;
39 typedef struct SMPI_Topology SMPI_Topology;
40 typedef struct SMPI_Win SMPI_Win;
41 typedef struct SMPI_Graph_topology SMPI_Graph_topology;
42 typedef struct SMPI_Cart_topology SMPI_Cart_topology;
43 typedef struct SMPI_Dist_Graph_topology SMPI_Dist_Graph_topology;
44
45 #endif
46
47 #endif