SimGrid 3.6.2
Scalable simulation of distributed systems
Defines
Swag cursor
Swag: O(1) set datatype

Defines

#define xbt_swag_foreach(obj, swag)
 A simple swag iterator.
#define xbt_swag_foreach_safe(obj, obj_next, swag)
 A safe swag iterator.

Detailed Description

Iterates over the whole swag.


Define Documentation

#define xbt_swag_foreach (   obj,
  swag 
)

A simple swag iterator.

Parameters:
objthe indice of the loop
swagwhat to iterate over
Warning:
you cannot modify the swag while using this loop
#define xbt_swag_foreach_safe (   obj,
  obj_next,
  swag 
)

A safe swag iterator.

Parameters:
objthe indice of the loop
obj_nextthe object that is right after (if any) obj in the swag
swagwhat 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.6.2.
Documentation of other versions can be found in their respective archive files (directory doc/html).
Generated for SimGridAPI by doxygen