Main Page   File List   File Members   Related Pages  

frdi_dict.c File Reference

a data structure holding key:value pairs More...

#include "frdi.h"

Functions

frdi_dict * frdiDictNew ()
void frdiDictSetStringHandler (frdi_dict *dict, frdi_handler *handler)
void frdiDictFree (frdi_dict *dict)
void frdiDictSetNew (frdi_dict *dict, void *key, void *value)
void frdiDictSetOld (frdi_dict *dict, void *key, void *value)
void frdiDictSet (frdi_dict *dict, void *key, void *value)
void * frdiDictGet (frdi_dict *dict, void *key)
void frdiDictRemove (frdi_dict *dict, void *key)
frdi_list * frdiDictKeys (frdi_dict *dict)
frdi_list * frdiDictValues (frdi_dict *dict)
char * frdiDictDisplay (frdi_dict *dict)


Detailed Description

a data structure holding key:value pairs

Author:
Douglas Reay <douglas-legal@reay.org>
Warning:

Function Documentation

frdi_dict* frdiDictNew  
 

Create Object

void frdiDictSetStringHandler frdi_dict *    dict,
frdi_handler *    handler
 

set the type of the void * for this entire dict

void frdiDictFree frdi_dict *    dict
 

Release Object

void frdiDictSetNew frdi_dict *    dict,
void *    key,
void *    value
 

associate a value with a new key

void frdiDictSetOld frdi_dict *    dict,
void *    key,
void *    value
 

associate a value with an existing key

void frdiDictSet frdi_dict *    dict,
void *    key,
void *    value
 

associate a value with a key removes the key if value is NULL

void* frdiDictGet frdi_dict *    dict,
void *    key
 

returns the value associated with a key returns NULL if key not present

void frdiDictRemove frdi_dict *    dict,
void *    key
 

remove a key:value pair

frdi_list* frdiDictKeys frdi_dict *    dict
 

Return the keys

frdi_list* frdiDictValues frdi_dict *    dict
 

Return the values

char* frdiDictDisplay frdi_dict *    dict
 

Return a string representation of the dictionary


Generated on Wed Aug 18 13:23:52 2004 for Project Fairdice by doxygen1.2.18