Typedefs | Functions

Dict constructor and destructor
[Dict: generic dictionnary]

Typedefs

typedef struct xbt_dict_ * xbt_dict_t
 Dictionary data type (opaque structure).

Functions

xbt_dict_t xbt_dict_new (void)
 Constructor.
void xbt_dict_free (xbt_dict_t *dict)
 Destructor.
unsigned int xbt_dict_size (xbt_dict_t dict)

Function Documentation

xbt_dict_t xbt_dict_new ( void   ) 

Constructor.

Returns:
pointer to the destination
See also:
xbt_dict_new_ext(), xbt_dict_free()

Creates and initialize a new dictionary with a default hashtable size.

void xbt_dict_free ( xbt_dict_t dict  ) 

Destructor.

Parameters:
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


Back to the main Simgrid Documentation page Generated for SimGridAPI by doxygen