SimGrid
3.7
Scalable simulation of distributed systems
|
Defines | |
#define | xbt_swag_foreach(obj, swag) |
A simple swag iterator. | |
#define | xbt_swag_foreach_safe(obj, obj_next, swag) |
A safe swag iterator. |
Iterates over the whole swag.
#define xbt_swag_foreach | ( | obj, | |
swag | |||
) |
A simple swag iterator.
obj | the indice of the loop |
swag | what to iterate over |
#define xbt_swag_foreach_safe | ( | obj, | |
obj_next, | |||
swag | |||
) |
A safe swag iterator.
obj | the indice of the loop |
obj_next | the object that is right after (if any) obj in the swag |
swag | what to iterate over |
You can safely modify the swag while using this loop. Well, safely... Err. You can remove obj without having any trouble at least.
Back to the main Simgrid Documentation page |
The version of SimGrid documented here is v3.7. Documentation of other versions can be found in their respective archive files (directory doc/html). |
Generated by ![]() |