X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/85897b1307bb68f05f31385803f1b3a5b806a73f..a3427ca7c9f8f2563bb982044e1082cc8f3cdd1e:/include/xbt/dynar.h?ds=sidebyside
diff --git a/include/xbt/dynar.h b/include/xbt/dynar.h
index ab156bbb58..9ced1eef4d 100644
--- a/include/xbt/dynar.h
+++ b/include/xbt/dynar.h
@@ -11,18 +11,13 @@
#define _XBT_DYNAR_H
#include "xbt/misc.h" /* SG_BEGIN_DECL */
+#include "xbt/function_types.h"
SG_BEGIN_DECL()
/** @addtogroup XBT_dynar
* @brief DynArr are dynamically sized vector which may contain any type of variables.
*
- *
Up | [\ref index]::[\ref XBT_API]
- * |
Prev | [\ref XBT_config]
- * |
Next | [\ref XBT_dict]
- * |
Down | \ref XBT_dynar_cons\n\ref XBT_dynar_array\n\ref XBT_dynar_perl\n\ref XBT_dynar_ctn\n\ref XBT_dynar_speed\n\ref XBT_dynar_cursor
- * |
- *
* These are the SimGrid version of the dynamically size arrays, which all C programmer recode one day or another.
*
* For performance concerns, the content of DynArr must be homogeneous (in
@@ -61,10 +56,6 @@ SG_BEGIN_DECL()
/** @defgroup XBT_dynar_cons Dynar constructor and destructor
* @ingroup XBT_dynar
*
- * Up | [\ref index]::[\ref XBT_API]::[\ref XBT_dynar]
- * |
Jump to | --\>\ref XBT_dynar_cons\<--\n\ref XBT_dynar_array\n\ref XBT_dynar_perl\n\ref XBT_dynar_ctn\n\ref XBT_dynar_speed\n\ref XBT_dynar_cursor
- * |
- *
* @{
*/
/** \brief Dynar data type (opaque type) */
@@ -74,6 +65,7 @@ SG_BEGIN_DECL()
xbt_dynar_t xbt_dynar_new(unsigned long elm_size,
void_f_pvoid_t *free_func);
void xbt_dynar_free(xbt_dynar_t *dynar);
+ void xbt_dynar_free_voidp(void *dynar);
void xbt_dynar_free_container(xbt_dynar_t *dynar);
unsigned long xbt_dynar_length(const xbt_dynar_t dynar);
@@ -85,10 +77,6 @@ SG_BEGIN_DECL()
/** @defgroup XBT_dynar_array Dynar as a regular array
* @ingroup XBT_dynar
*
- * Up | [\ref index]::[\ref XBT_API]::[\ref XBT_dynar]
- * |
Jump to | \ref XBT_dynar_cons\n--\>\ref XBT_dynar_array\<--\n\ref XBT_dynar_perl\n\ref XBT_dynar_ctn\n\ref XBT_dynar_speed\n\ref XBT_dynar_cursor
- * |
- *
* @{
*/
@@ -104,10 +92,6 @@ SG_BEGIN_DECL()
/** @defgroup XBT_dynar_perl Perl-like use of dynars
* @ingroup XBT_dynar
*
- * Up | [\ref index]::[\ref XBT_API]::[\ref XBT_dynar]
- * |
Jump to | \ref XBT_dynar_cons\n\ref XBT_dynar_array\n--\>\ref XBT_dynar_perl\<--\n\ref XBT_dynar_ctn\n\ref XBT_dynar_speed\n\ref XBT_dynar_cursor
- * |
- *
* @{
*/
@@ -121,11 +105,7 @@ SG_BEGIN_DECL()
/** @defgroup XBT_dynar_ctn Direct manipulation to the dynars content
* @ingroup XBT_dynar
*
- * Up | [\ref index]::[\ref XBT_API]::[\ref XBT_dynar]
- * |
Jump to | \ref XBT_dynar_cons\n\ref XBT_dynar_array\n\ref XBT_dynar_perl\n--\>\ref XBT_dynar_ctn\<--\n\ref XBT_dynar_speed\n\ref XBT_dynar_cursor
- * |
- *
- * Those functions do not retrive the content, but only their address.
+ * Those functions do not retrieve the content, but only their address.
*
* @{
*/
@@ -139,11 +119,7 @@ SG_BEGIN_DECL()
/** @defgroup XBT_dynar_speed Speed optimized access to dynars of scalars
* @ingroup XBT_dynar
*
- * Up | [\ref index]::[\ref XBT_API]::[\ref XBT_dynar]
- * |
Jump to | \ref XBT_dynar_cons\n\ref XBT_dynar_array\n\ref XBT_dynar_perl\n\ref XBT_dynar_ctn\n--\>\ref XBT_dynar_speed\<--\n\ref XBT_dynar_cursor
- * |
- *
- * While the other functions use a memcpy to retrive the content into the
+ * While the other functions use a memcpy to retrieve the content into the
* user provided area, those ones use a regular affectation. It only works
* for scalar values, but should be a little faster.
*
@@ -179,10 +155,6 @@ SG_BEGIN_DECL()
/** @defgroup XBT_dynar_cursor Cursors on dynar
* @ingroup XBT_dynar
*
- * Up | [\ref index]::[\ref XBT_API]::[\ref XBT_dynar]
- * |
Jump to | \ref XBT_dynar_cons\n\ref XBT_dynar_array\n\ref XBT_dynar_perl\n\ref XBT_dynar_ctn\n\ref XBT_dynar_speed\n--\>\ref XBT_dynar_cursor\<--
- * |
- *
* Cursors are used to iterate over the structure. Never add elements to the
* DynArr during the traversal. To remove elements, use the
* xbt_dynar_cursor_rm() function