SimGrid
|
Defines | |
#define | xbt_fifo_foreach(f, i, n, type) |
List iterator asserts and stuff. | |
Functions | |
void | xbt_fifo_set_item_content (xbt_fifo_item_t, void *) |
void * | xbt_fifo_get_item_content (xbt_fifo_item_t) |
void | xbt_fifo_push_item (xbt_fifo_t, xbt_fifo_item_t) |
xbt_fifo_item_t | xbt_fifo_pop_item (xbt_fifo_t) |
void | xbt_fifo_unshift_item (xbt_fifo_t, xbt_fifo_item_t) |
xbt_fifo_item_t | xbt_fifo_shift_item (xbt_fifo_t) |
int | xbt_fifo_remove (xbt_fifo_t, void *) |
int | xbt_fifo_remove_all (xbt_fifo_t, void *) |
void | xbt_fifo_remove_item (xbt_fifo_t, xbt_fifo_item_t) |
xbt_fifo_item_t | xbt_fifo_get_next_item (xbt_fifo_item_t i) |
xbt_fifo_item_t | xbt_fifo_get_prev_item (xbt_fifo_item_t i) |
#define xbt_fifo_foreach | ( | f, | |
i, | |||
n, | |||
type | |||
) |
List iterator asserts and stuff.
f | a list (xbt_fifo_t) |
i | a bucket (xbt_fifo_item_t) |
type | a type |
n | an object of type type. |
Iterates over the whole list.
void xbt_fifo_set_item_content | ( | xbt_fifo_item_t | i, |
void * | v | ||
) |
i | a bucket |
v | an object |
stores v in i.
void* xbt_fifo_get_item_content | ( | xbt_fifo_item_t | i | ) |
i | a bucket |
void xbt_fifo_push_item | ( | xbt_fifo_t | l, |
xbt_fifo_item_t | new | ||
) |
Push a bucket
l | list |
new | bucket |
Hook up this bucket at the tail of the list
xbt_fifo_item_t xbt_fifo_pop_item | ( | xbt_fifo_t | l | ) |
Pop bucket
l |
Returns NULL if the list was empty.
void xbt_fifo_unshift_item | ( | xbt_fifo_t | l, |
xbt_fifo_item_t | new | ||
) |
Push a bucket
l | list |
new | bucket |
Hook up this bucket at the head of the list
xbt_fifo_item_t xbt_fifo_shift_item | ( | xbt_fifo_t | l | ) |
Shift bucket
l |
Returns NULL if the list was empty.
int xbt_fifo_remove | ( | xbt_fifo_t | l, |
void * | t | ||
) |
l | |
t | an objet |
removes the first occurence of t from l.
int xbt_fifo_remove_all | ( | xbt_fifo_t | l, |
void * | t | ||
) |
l | |
t | an objet |
removes all occurences of t from l.
void xbt_fifo_remove_item | ( | xbt_fifo_t | l, |
xbt_fifo_item_t | current | ||
) |
l | a list |
current | a bucket |
removes a bucket current from the list l. This function implicitely assumes (and doesn't check!) that this item belongs to this list...
xbt_fifo_item_t xbt_fifo_get_next_item | ( | xbt_fifo_item_t | i | ) |
i | a bucket |
xbt_fifo_item_t xbt_fifo_get_prev_item | ( | xbt_fifo_item_t | i | ) |
i | a bucket |
Back to the main Simgrid Documentation page |
The version of Simgrid documented here is v3.6.1. Documentation of other versions can be found in their respective archive files (directory doc/html). |
Generated for SimGridAPI by
![]() |