SimGrid
3.16
Versatile Simulation of Distributed Systems
Home page
Online documentation
Java documentation
Dev's Corner
Functions
dict_cursor.c File Reference
#include "
xbt/misc.h
"
#include "
xbt/ex.h
"
#include "
dict_private.h
"
#include <string.h>
Functions
XBT_LOG_NEW_DEFAULT_SUBCATEGORY
(xbt_dict_cursor, xbt_dict, "To
traverse
dictionaries")
xbt_dict_cursor_t
xbt_dict_cursor_new
(const
xbt_dict_t
dict)
Creator.
More...
void
xbt_dict_cursor_free
(
xbt_dict_cursor_t
*cursor)
Destructor.
More...
static
void
__cursor_not_null
(
xbt_dict_cursor_t
cursor)
void
xbt_dict_cursor_rewind
(
xbt_dict_cursor_t
cursor)
Reinitialize the cursor.
More...
void
xbt_dict_cursor_first
(const
xbt_dict_t
dict,
xbt_dict_cursor_t
*cursor)
Create the cursor if it does not exists.
More...
void
xbt_dict_cursor_step
(
xbt_dict_cursor_t
cursor)
Move to the next element.
More...
int
xbt_dict_cursor_get_or_free
(
xbt_dict_cursor_t
*cursor, char **
key
,
void
**data)
Get current data, or free the cursor if there is no data left.
More...
char *
xbt_dict_cursor_get_key
(
xbt_dict_cursor_t
cursor)
Get current key.
More...
void
*
xbt_dict_cursor_get_data
(
xbt_dict_cursor_t
cursor)
Get current data.
More...
void
xbt_dict_cursor_set_data
(
xbt_dict_cursor_t
cursor,
void
*data,
void_f_pvoid_t
free_ctn)
Set current data.
More...
Function Documentation
◆
XBT_LOG_NEW_DEFAULT_SUBCATEGORY()
XBT_LOG_NEW_DEFAULT_SUBCATEGORY
(
xbt_dict_cursor
,
xbt_dict
,
"To
traverse
dictionaries"
)
◆
__cursor_not_null()
static
void
__cursor_not_null
(
xbt_dict_cursor_t
cursor
)
inline
static
src
xbt
dict_cursor.c
Generated by
1.8.13