SimGrid: Speed optimized access to dynars of scalars

SimGrid 3.10 Versatile Simulation of Distributed Systems

- Home page
- Online documentation
- Dev's Corner

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Macros
Speed optimized access to dynars of scalars
Dynar: generic dynamic array

## Macros
#define | xbt_dynar_get_as(dynar, idx, type)
| Quick retrieval of scalar content.
#define | xbt_dynar_set_as(dynar, idx, type, val)
| Quick setting of scalar content.
#define | xbt_dynar_getlast_as(dynar, type)
| Quick retrieval of scalar content.
#define | xbt_dynar_getfirst_as(dynar, type)
| Quick retrieval of scalar content.
#define | xbt_dynar_insert_at_as(dynar, idx, type, value)
| Quick insertion of scalar content.
#define | xbt_dynar_push_as(dynar, type, value)
| Quick insertion of scalar content.
#define | xbt_dynar_pop_as(dynar, type)
| Quick removal of scalar content.

## Detailed Description

While the other functions use a memcpy to retrieve the content into the user provided area, those ones use a regular affectation. It only works for scalar values, but should be a little faster.