SimGrid
3.18
Versatile Simulation of Distributed Systems
|
Classes | |
struct | s_xbt_dictelm |
Typedefs | |
typedef struct s_xbt_dict * | xbt_dict_t |
Dictionary data type (opaque structure) More... | |
typedef struct s_xbt_dictelm * | xbt_dictelm_t |
typedef struct s_xbt_dictelm | s_xbt_dictelm_t |
Functions | |
XBT_ATTRIB_DEPRECATED_v319 ("Use xbt_dict_new_homogeneous(). v3.19 will turn this warning into an error.") extern xbt_dict_t xbt_dict_new() | |
xbt_dict_t | xbt_dict_new_homogeneous (void_f_pvoid_t free_ctn) |
Constructor. More... | |
void | xbt_dict_free (xbt_dict_t *dict) |
Destructor. More... | |
unsigned int | xbt_dict_size (xbt_dict_t dict) |
Returns the amount of elements in the dict. More... | |
typedef struct s_xbt_dict* xbt_dict_t |
Dictionary data type (opaque structure)
typedef struct s_xbt_dictelm* xbt_dictelm_t |
typedef struct s_xbt_dictelm s_xbt_dictelm_t |
XBT_ATTRIB_DEPRECATED_v319 | ( | "Use xbt_dict_new_homogeneous(). v3.19 will turn this warning into an error." | ) |
xbt_dict_t xbt_dict_new_homogeneous | ( | void_f_pvoid_t | free_ctn | ) |
Constructor.
free_ctn | function to call with (data as argument) when data is removed from the dictionary |
Creates and initialize a new dictionary with a default hashtable size. The dictionary is homogeneous: each element share the same free function.
void xbt_dict_free | ( | xbt_dict_t * | dict | ) |
Destructor.
dict | the dictionary to be freed |
Frees a dictionary with all the data
unsigned int xbt_dict_size | ( | xbt_dict_t | dict | ) |
Returns the amount of elements in the dict.