SimGrid  3.21
Versatile Simulation of Distributed Systems

Detailed Description

Careful, those functions assume that the key is null-terminated.

Functions

void xbt_dict_set (xbt_dict_t dict, const char *key, void *data, void_f_pvoid_t free_ctn)
 
void * xbt_dict_get (xbt_dict_t dict, const char *key)
 
void * xbt_dict_get_or_null (xbt_dict_t dict, const char *key)
 
char * xbt_dict_get_key (xbt_dict_t dict, const void *data)
 
xbt_dictelm_t xbt_dict_get_elm (xbt_dict_t dict, const char *key)
 
xbt_dictelm_t xbt_dict_get_elm_or_null (xbt_dict_t dict, const char *key)
 
void xbt_dict_remove (xbt_dict_t dict, const char *key)
 
void xbt_dict_reset (xbt_dict_t dict)
 
int xbt_dict_length (xbt_dict_t dict)
 
void xbt_dict_dump (xbt_dict_t dict, void(*output)(void *))
 
int xbt_dict_is_empty (xbt_dict_t dict)
 

Function Documentation

◆ xbt_dict_set()

void xbt_dict_set ( xbt_dict_t  dict,
const char *  key,
void *  data,
void_f_pvoid_t  free_ctn 
)

◆ xbt_dict_get()

void* xbt_dict_get ( xbt_dict_t  dict,
const char *  key 
)

◆ xbt_dict_get_or_null()

void* xbt_dict_get_or_null ( xbt_dict_t  dict,
const char *  key 
)

◆ xbt_dict_get_key()

char* xbt_dict_get_key ( xbt_dict_t  dict,
const void *  data 
)

◆ xbt_dict_get_elm()

xbt_dictelm_t xbt_dict_get_elm ( xbt_dict_t  dict,
const char *  key 
)

◆ xbt_dict_get_elm_or_null()

xbt_dictelm_t xbt_dict_get_elm_or_null ( xbt_dict_t  dict,
const char *  key 
)

◆ xbt_dict_remove()

void xbt_dict_remove ( xbt_dict_t  dict,
const char *  key 
)

◆ xbt_dict_reset()

void xbt_dict_reset ( xbt_dict_t  dict)

◆ xbt_dict_length()

int xbt_dict_length ( xbt_dict_t  dict)

◆ xbt_dict_dump()

void xbt_dict_dump ( xbt_dict_t  dict,
void(*)(void *)  output 
)

◆ xbt_dict_is_empty()

int xbt_dict_is_empty ( xbt_dict_t  dict)