Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use struct here to keep compatibility with C files.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 21 Jan 2014 15:28:25 +0000 (16:28 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 21 Jan 2014 21:45:49 +0000 (22:45 +0100)
struct As is used in ../include/msg/datatypes.h
struct RoutingEdge is used in ../include/simgrid/platf.h

(commit 6af809fdd97845671db6136b3903e0d543ab7217 again).

src/surf/surf_routing.hpp

index 5a1de77..e4d93c6 100644 (file)
@@ -14,13 +14,16 @@ xbt_edge_t new_xbt_graph_edge (xbt_graph_t graph, xbt_node_t s, xbt_node_t d, xb
 /***********
  * Classes *
  ***********/
-class As;
+
+/* Note: As and RoutingEdge are declard as struct instead of class, to keep
+   compatibility with C files where they are mentioned. */
+struct As;
 typedef As *AsPtr;
 
 class RoutingModelDescription;
 typedef RoutingModelDescription *RoutingModelDescriptionPtr;
 
-class RoutingEdge;
+struct RoutingEdge;
 typedef RoutingEdge *RoutingEdgePtr;
 
 class Onelink;
@@ -33,7 +36,7 @@ typedef RoutingPlatf *RoutingPlatfPtr;
  * @brief The Autonomous System (AS) routing interface
  * @details [TODO]
  */
-class As {
+struct As {
 public:
   xbt_dynar_t p_indexNetworkElm;
   xbt_dict_t p_bypassRoutes;    /* store bypass routes */
@@ -86,7 +89,7 @@ public:
  * @brief A routing edge
  * @details [long description]
  */
-class RoutingEdge {
+struct RoutingEdge {
 public:
   ~RoutingEdge() { xbt_free(p_name);};
   AsPtr p_rcComponent;