Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
routing: get rid of unused strings
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 12 Feb 2016 00:05:19 +0000 (01:05 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 12 Feb 2016 00:05:19 +0000 (01:05 +0100)
include/simgrid/platf.h
src/surf/surf_routing.cpp
src/surf/surf_routing_dijkstra.hpp
src/surf/surf_routing_floyd.hpp
src/surf/surf_routing_full.hpp
src/surf/surf_routing_none.hpp

index c9eae8d..75b26ff 100644 (file)
@@ -33,8 +33,6 @@ typedef enum {
 
 
 typedef struct s_model_type {
-  const char *name;
-  const char *desc;
   AS_t (*create) ();
 } s_routing_model_description_t, *routing_model_description_t;
 
index 73a9d74..16bd132 100644 (file)
@@ -85,25 +85,16 @@ typedef enum {
 } e_routing_types;
 
 struct s_model_type routing_models[] = {
-  {"Full",
-   "Full routing data (fast, large memory requirements, fully expressive)",
-   model_full_create},
-  {"Floyd",
-   "Floyd routing data (slow initialization, fast lookup, lesser memory requirements, shortest path routing only)",
-   model_floyd_create},
-  {"Dijkstra",
-   "Dijkstra routing data (fast initialization, slow lookup, small memory requirements, shortest path routing only)",
-   model_dijkstra_create},
-  {"DijkstraCache",
-   "Dijkstra routing data (fast initialization, fast lookup, small memory requirements, shortest path routing only)",
-   model_dijkstracache_create},
-  {"none", "No routing (Unless you know what you are doing, avoid using this mode in combination with a non Constant network model).",
-   model_none_create},
-  {"Vivaldi", "Vivaldi routing", model_vivaldi_create},
-  {"Cluster", "Cluster routing", model_cluster_create},
-  {"TorusCluster", "Torus Cluster routing", model_torus_cluster_create},
-  {"FatTreeCluster", "Fat Tree Cluster routing", model_fat_tree_cluster_create},
-  {NULL, NULL, NULL}
+  {model_full_create},
+  {model_floyd_create},
+  {model_dijkstra_create},
+  {model_dijkstracache_create},
+  {model_none_create},
+  {model_vivaldi_create},
+  {model_cluster_create},
+  {model_torus_cluster_create},
+  {model_fat_tree_cluster_create},
+  {NULL}
 };
 
 /** @brief Add a link connecting an host to the rest of its AS (which must be cluster or vivaldi) */
index 7f6e4b8..e52beef 100644 (file)
@@ -34,6 +34,7 @@ namespace surf {
 
 class XBT_PRIVATE AsDijkstra;
 
+/** Dijkstra routing data: fast initialization, slow lookup, small memory requirements, shortest path routing only */
 class AsDijkstra : public AsGeneric {
 public:
   AsDijkstra();
index c9ab30b..7bca1e1 100644 (file)
@@ -20,6 +20,7 @@ namespace surf {
  ***********/
 class XBT_PRIVATE AsFloyd;
 
+/** Floyd routing data: slow initialization, fast lookup, lesser memory requirements, shortest path routing only */
 class AsFloyd: public AsGeneric {
 public:
   AsFloyd();
index 77debc1..0473e92 100644 (file)
@@ -19,6 +19,7 @@ namespace surf {
  ***********/
 class XBT_PRIVATE AsFull;
 
+/** Full routing: fast, large memory requirements, fully expressive */
 class AsFull: public AsGeneric {
 public:
 
index a81babf..71026a4 100644 (file)
@@ -14,6 +14,7 @@
 namespace simgrid {
 namespace surf {
 
+/** No specific routing. Mainly useful with the constant network model */
 class XBT_PRIVATE AsNone : public As {
 public:
   AsNone() {}