SimGrid: Dynar miscellaneous functions

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
Functions
Dynar miscellaneous functions
Dynar: generic dynamic array

## Functions
unsigned long | xbt_dynar_length (const xbt_dynar_t dynar)
| Count of dynar's elements.
int | xbt_dynar_is_empty (const xbt_dynar_t dynar)
| check if a dynar is empty
void | xbt_dynar_reset (xbt_dynar_t const dynar)
| Frees the content and set the size to 0.
void | xbt_dynar_merge (xbt_dynar_t *d1, xbt_dynar_t *d2)
| Merge dynar d2 into d1.

## Detailed Description

## Function Documentation

unsigned long xbt_dynar_length | ( | const xbt_dynar_t | dynar | ) |

Count of dynar's elements.

Parameters

  dynar | the dynar we want to mesure

int xbt_dynar_is_empty | ( | const xbt_dynar_t | dynar | ) |

check if a dynar is empty

Parameters

  dynar | the dynat we want to check

void xbt_dynar_reset | ( | xbt_dynar_t const | dynar | ) |

Frees the content and set the size to 0.

Parameters

  dynar | who to squeeze

void xbt_dynar_merge | ( | xbt_dynar_t * | d1,
|  | xbt_dynar_t * | d2
| ) |  |

Merge dynar d2 into d1.

Parameters

  d1 | dynar to keep
  d2 | dynar to merge into d1. This dynar is free at end.