Salad  1.0.15
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Fields | Related Functions
sld_map Struct Reference

#include <map.h>

Data Fields

struct sld_vectorkeys
 
struct sld_vectorvalues
 

Related Functions

SLD_SSINT sld_map_init (struct sld_map *map)
 Initializes a sld_map. More...
 
SLD_UINT sld_map_size (struct sld_map *map)
 Returns the size of a sld_map. More...
 
SLD_SSINT sld_map_add (struct sld_map *map, char *key, void *value)
 Adds an object to a sld_map. More...
 
SLD_BOOL sld_map_delete (struct sld_map *map, char *key)
 Removes an object from a sld_map with the specified key. More...
 
SLD_BOOL sld_map_has_key (struct sld_map *map, char *key)
 Checks whether or not a sld_map contains the specified key. More...
 
void * sld_map_get_value (struct sld_map *map, char *key)
 Obtains the value from a sld_map using the specified key. More...
 
void * sld_map_key_at (struct sld_map *map, SLD_UINT index)
 Obtains the key from a sld_map at the specified index. More...
 
void * sld_map_value_at (struct sld_map *map, SLD_UINT index)
 Obtains the value from a sld_map at the specified index. More...
 
void sld_map_free (struct sld_map *map)
 Frees any memory allocated for an initialized sld_map. More...
 

Detailed Description

A sld_map contains key/value pairs

Examples:
map.c, and options.c.

Field Documentation

struct sld_vector* sld_map::keys

a sld_vector containing keys as strings

struct sld_vector* sld_map::values

a sld_vector containing ambiguous objects


The documentation for this struct was generated from the following file: