From: Arnaud Giersch Date: Tue, 21 Jan 2014 15:28:25 +0000 (+0100) Subject: Use struct here to keep compatibility with C files. X-Git-Tag: v3_11_beta~136 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/fd10f21f197cb196350ffa8e7fe79c99ce38af42 Use struct here to keep compatibility with C files. struct As is used in ../include/msg/datatypes.h struct RoutingEdge is used in ../include/simgrid/platf.h (commit 6af809fdd97845671db6136b3903e0d543ab7217 again). --- diff --git a/src/surf/surf_routing.hpp b/src/surf/surf_routing.hpp index 5a1de77adb..e4d93c6d0b 100644 --- a/src/surf/surf_routing.hpp +++ b/src/surf/surf_routing.hpp @@ -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;