Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rename specific topology classes, to ease comprehension.
[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 Comm;
17 class Group;
18 class Op;
19 class Request;
20 class Topo;
21 class Topo_Cart;
22 class Topo_Graph;
23 class Topo_Dist_Graph;
24 class Win;
25
26
27
28 }
29 }
30
31 typedef simgrid::smpi::Comm SMPI_Comm;
32 typedef simgrid::smpi::Group SMPI_Group;
33 typedef simgrid::smpi::Op SMPI_Op;
34 typedef simgrid::smpi::Request SMPI_Request;
35 typedef simgrid::smpi::Topo SMPI_Topology;
36 typedef simgrid::smpi::Topo_Cart SMPI_Cart_topology;
37 typedef simgrid::smpi::Topo_Dist_Graph SMPI_Dist_Graph_topology;
38 typedef simgrid::smpi::Topo_Graph SMPI_Graph_topology;
39 typedef simgrid::smpi::Win SMPI_Win;
40
41 #else
42
43 typedef struct SMPI_Comm SMPI_Comm;
44 typedef struct SMPI_Group SMPI_Group;
45 typedef struct SMPI_Op SMPI_Op;
46 typedef struct SMPI_Request SMPI_Request;
47 typedef struct SMPI_Topology SMPI_Topology;
48 typedef struct SMPI_Win SMPI_Win;
49 typedef struct SMPI_Graph_topology SMPI_Graph_topology;
50 typedef struct SMPI_Cart_topology SMPI_Cart_topology;
51 typedef struct SMPI_Dist_Graph_topology SMPI_Dist_Graph_topology;
52
53 #endif
54
55 #endif