Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New functions to search in dynars
[simgrid.git] / include / xbt / dynar.h
index f0cbdd5..85dc88e 100644 (file)
@@ -11,6 +11,7 @@
 #define _XBT_DYNAR_H
 
 #include "xbt/misc.h" /* SG_BEGIN_DECL */
+#include "xbt/function_types.h"
 
 SG_BEGIN_DECL()
 
@@ -87,6 +88,8 @@ SG_BEGIN_DECL()
   void xbt_dynar_insert_at(xbt_dynar_t dynar, int  idx, const void *src);
   void xbt_dynar_remove_at(xbt_dynar_t dynar, int  idx, void * const dst);
 
+  int  xbt_dynar_search(xbt_dynar_t dynar, void *elem);
+  int  xbt_dynar_member(xbt_dynar_t dynar, void *elem);
 /** @} */
 /** @defgroup XBT_dynar_perl Perl-like use of dynars
  *  @ingroup XBT_dynar
@@ -104,7 +107,7 @@ SG_BEGIN_DECL()
 /** @defgroup XBT_dynar_ctn Direct manipulation to the dynars content
  *  @ingroup XBT_dynar
  *
- *  Those functions do not retrive the content, but only their address.
+ *  Those functions do not retrieve the content, but only their address.
  *
  *  @{
  */
@@ -118,7 +121,7 @@ SG_BEGIN_DECL()
 /** @defgroup XBT_dynar_speed Speed optimized access to dynars of scalars
  *  @ingroup XBT_dynar
  *
- *  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.
  *