SimGrid  3.11
Versatile Simulation of Distributed Systems
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages

Macros

#define xbt_set_foreach(set, cursor, elm)
 Iterates over the whole set.
 

Typedefs

typedef struct xbt_set_cursor_ * xbt_set_cursor_t
 Cursor type.
 

Functions

void xbt_set_cursor_first (xbt_set_t set, xbt_set_cursor_t *cursor)
 Create the cursor if it does not exists, rewind it in any case.
 
void xbt_set_cursor_step (xbt_set_cursor_t cursor)
 Move to the next element.
 
int xbt_set_cursor_get_or_free (xbt_set_cursor_t *cursor, xbt_set_elm_t *elm)
 Get current data. More...
 

Detailed Description

Warning
Don't add or remove entries to the cache while traversing

Function Documentation

int xbt_set_cursor_get_or_free ( xbt_set_cursor_t curs,
xbt_set_elm_t elm 
)

Get current data.

Returns
true if it's ok, false if there is no more data