Maps#

typedef struct mlx_map_string_to_array_ mlx_map_string_to_array#

A string-to-array map.

typedef struct mlx_map_string_to_array_iterator_ mlx_map_string_to_array_iterator#

An iterator over a string-to-array map.

typedef struct mlx_map_string_to_string_ mlx_map_string_to_string#

A string-to-string map.

typedef struct mlx_map_string_to_string_iterator_ mlx_map_string_to_string_iterator#

An iterator over a string-to-string map.

mlx_map_string_to_array mlx_map_string_to_array_new(void)#

Returns a new empty string-to-array map.

int mlx_map_string_to_array_set(mlx_map_string_to_array *map, const mlx_map_string_to_array src)#

Set map to provided src map.

int mlx_map_string_to_array_free(mlx_map_string_to_array map)#

Free a string-to-array map.

int mlx_map_string_to_array_insert(mlx_map_string_to_array map, const char *key, const mlx_array value)#

Insert a new value at the specified key in the map.

int mlx_map_string_to_array_get(mlx_array *value, const mlx_map_string_to_array map, const char *key)#

Returns the value indexed at the specified key in the map.

mlx_map_string_to_array_iterator mlx_map_string_to_array_iterator_new(mlx_map_string_to_array map)#

Returns a new iterator over the given map.

int mlx_map_string_to_array_iterator_free(mlx_map_string_to_array_iterator it)#

Free iterator.

int mlx_map_string_to_array_iterator_next(const char **key, mlx_array *value, mlx_map_string_to_array_iterator it)#

Increment iterator.

mlx_map_string_to_string mlx_map_string_to_string_new(void)#

Returns a new empty string-to-string map.

int mlx_map_string_to_string_set(mlx_map_string_to_string *map, const mlx_map_string_to_string src)#

Set map to provided src map.

int mlx_map_string_to_string_free(mlx_map_string_to_string map)#

Free a string-to-string map.

int mlx_map_string_to_string_insert(mlx_map_string_to_string map, const char *key, const char *value)#

Insert a new value at the specified key in the map.

int mlx_map_string_to_string_get(const char **value, const mlx_map_string_to_string map, const char *key)#

Returns the value indexed at the specified key in the map.

mlx_map_string_to_string_iterator mlx_map_string_to_string_iterator_new(mlx_map_string_to_string map)#

Returns a new iterator over the given map.

int mlx_map_string_to_string_iterator_free(mlx_map_string_to_string_iterator it)#

Free iterator.

int mlx_map_string_to_string_iterator_next(const char **key, const char **value, mlx_map_string_to_string_iterator it)#

Increment iterator.

struct mlx_map_string_to_array_#
#include <map.h>

A string-to-array map.

struct mlx_map_string_to_array_iterator_#
#include <map.h>

An iterator over a string-to-array map.

struct mlx_map_string_to_string_#
#include <map.h>

A string-to-string map.

struct mlx_map_string_to_string_iterator_#
#include <map.h>

An iterator over a string-to-string map.