@see SD_storage_management */
typedef xbt_dictelm_t SD_storage_t;
-/************************** Link handling ***********************************/
-/** @defgroup SD_link_management Links
- * @brief Functions for managing the network links
- *
- * This section describes the functions for managing the network links.
- *
- * A link is a network node represented as a <em>name</em>, a <em>current
- * bandwidth</em> and a <em>current latency</em>. The links are created
- * when you call the function SD_create_environment.
- *
- * @see SD_link_t
- * @{
- */
-XBT_PUBLIC(const SD_link_t *) SD_link_get_list(void);
-
-/** @} */
-
/************************** Workstation handling ****************************/
/** @defgroup SD_workstation_management Workstations
+++ /dev/null
-/* Copyright (c) 2006-2016. The SimGrid Team.
- * All rights reserved. */
-
-/* This program is free software; you can redistribute it and/or modify it
- * under the terms of the license (GNU LGPL) which comes with this package. */
-
-#include "src/simdag/simdag_private.h"
-#include "simgrid/simdag.h"
-#include "xbt/dict.h"
-#include "xbt/sysdep.h"
-#include "surf/surf.h"
-#include "simgrid/link.h"
-
-/**
- * \brief Returns the link list
- *
- * Use SD_link_get_number() to know the array size.
- *
- * \return an array of \ref SD_link_t containing all links
- * \see SD_link_get_number()
- */
-const SD_link_t *SD_link_get_list(void)
-{
- if (sd_global->link_list == NULL) /* this is the first time the function is called */
- sd_global->link_list = sg_link_list();
-
- return sd_global->link_list;
-}
-
-
-
-
typedef struct SD_global {
SD_workstation_t *workstation_list; /* array of workstations, created only if
necessary in SD_workstation_get_list */
- SD_link_t *link_list; /* array of links, created only if
- necessary in SD_link_get_list */
+ SD_link_t *link_list; /* array of links */
SD_link_t *recyclable_route; /* array returned by SD_route_get_list
and mallocated only once */
/* creation of the environment */
SD_create_environment(argv[1]);
- links = SD_link_get_list();
+ links = sg_link_list();
int count = sg_link_count();
XBT_INFO("Link count: %d", count);
qsort((void *)links, count, sizeof(SD_link_t), cmp_link);
// Links
totalLinks = sg_link_count();
- links = SD_link_get_list();
+ links = sg_link_list();
qsort((void *) links, totalLinks, sizeof(SD_link_t), name_compare_links);
src/simdag/instr_sd_task.cpp
src/simdag/sd_daxloader.cpp
src/simdag/sd_global.cpp
- src/simdag/sd_link.cpp
src/simdag/sd_task.cpp
src/simdag/sd_workstation.cpp
)