SimGrid 3.6.2
Scalable simulation of distributed systems
Defines | Typedefs | Functions
Sets cursors
Set: generic set datatype

Defines

#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.

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


Back to the main Simgrid Documentation page The version of Simgrid documented here is v3.6.2.
Documentation of other versions can be found in their respective archive files (directory doc/html).
Generated for SimGridAPI by doxygen