GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
map.c File Reference
#include <gpac/map.h>
#include <gpac/list.h>
+ Include dependency graph for map.c:

Data Structures

struct  GF_Map
 

Functions

GF_Err gf_map_iter_set (GF_Map *map, GF_It_Map *it)
 Set a new map iterator. More...
 
void * gf_map_iter_has_next (GF_It_Map *it)
 return the next value in the map More...
 
GF_Err gf_map_iter_reset (GF_It_Map *it)
 Reset the iterator in the map. More...
 
GF_Pairgf_pair_new (const char *key, u32 key_len, void *item)
 
void gf_pair_del (GF_Pair *pair)
 
static GF_Pairgf_pair_get (GF_List *pairs, const char *key)
 
static Bool gf_pair_rem (GF_List *pairs, const char *key)
 
static unsigned long hash (const char *str)
 
GF_Mapgf_map_new (u32 hash_capacity)
 map constructor More...
 
void gf_map_del (GF_Map *ptr)
 map destructor More...
 
void gf_map_reset (GF_Map *ptr)
 resets map More...
 
void * gf_map_find (GF_Map *ptr, const char *key)
 finds item More...
 
GF_Err gf_map_insert (GF_Map *ptr, const char *key, void *item)
 add item More...
 
Bool gf_map_rem (GF_Map *ptr, const char *key)
 removes the couple key/item from the map More...
 
u32 gf_map_count (const GF_Map *ptr)
 get count More...
 
Bool gf_map_has_key (GF_Map *ptr, const char *key)
 Check if map contains key. More...
 

Data Structure Documentation

struct _tag_map
+ Collaboration diagram for GF_Map:
Data Fields
u32 hash_capacity
GF_List ** pairs

Function Documentation

GF_Pair* gf_pair_new ( const char *  key,
u32  key_len,
void *  item 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_pair_del ( GF_Pair pair)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Pair* gf_pair_get ( GF_List *  pairs,
const char *  key 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool gf_pair_rem ( GF_List *  pairs,
const char *  key 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static unsigned long hash ( const char *  str)
static

+ Here is the caller graph for this function: