microfeed/microfeedstore.h File Reference

Go to the source code of this file.

Defines

#define microfeed_store_get(s, k, t)   ((t*)microfeed_store_get_impl(s, k))
#define microfeed_store_get_index(s, i, t)   ((t*)microfeed_store_index_impl(s, i))
#define microfeed_store_remove_key(s, k, t)   ((t*)microfeed_store_remove_key_impl(s, k))
#define microfeed_store_remove_index(s, i, t)   ((t*)microfeed_store_remove_index_impl(s, i))
#define microfeed_store_iterator_get(i, t)   ((t*)microfeed_store_iterator_get_impl(i))

Typedefs

typedef struct _MicrofeedStore MicrofeedStore
 Opaque data type representing sorted array that grows automatically when items are added.
typedef struct
_MicrofeedStoreIterator 
MicrofeedStoreIterator
 Opaque data type representing sorted array iterator that traverses over the elements of the array.
typedef int(* MicrofeedStoreCompareKeysFunction )(const void *key1, const void *key2)
typedef const void *(* MicrofeedStoreGetKeyFunction )(const void *item)
typedef void(* MicrofeedStoreForeachFunction )(void *data, void *user_data)

Functions

MicrofeedStoremicrofeed_store_new_sorted (MicrofeedStoreCompareKeysFunction compare_keys, MicrofeedStoreGetKeyFunction get_key)
MicrofeedStoremicrofeed_store_new_unsorted (MicrofeedStoreCompareKeysFunction compare_keys, MicrofeedStoreGetKeyFunction get_key)
void microfeed_store_free (MicrofeedStore *store)
void microfeed_store_foreach (MicrofeedStore *store, MicrofeedStoreForeachFunction foreach, void *user_data)
void * microfeed_store_get_impl (MicrofeedStore *store, const void *key)
void * microfeed_store_index_impl (MicrofeedStore *store, unsigned int index)
unsigned int microfeed_store_get_size (MicrofeedStore *store)
void microfeed_store_insert (MicrofeedStore *store, void *data)
void * microfeed_store_replace (MicrofeedStore *store, void *data)
int microfeed_store_remove (MicrofeedStore *store, const void *data)
void * microfeed_store_remove_key_impl (MicrofeedStore *store, const void *key)
void * microfeed_store_remove_index_impl (MicrofeedStore *store, unsigned int index)
MicrofeedStoreIteratormicrofeed_store_iterate (MicrofeedStore *store, const void *start_key)
void microfeed_store_iterator_free (MicrofeedStoreIterator *iterator)
void * microfeed_store_iterator_get_impl (MicrofeedStoreIterator *iterator)
void microfeed_store_iterator_next (MicrofeedStoreIterator *iterator)
int microfeed_store_compare_keys_direct (const void *key1, const void *key2)
const void * microfeed_store_get_key_direct (const void *data)


Generated on Sat Feb 28 23:19:16 2009 for Microfeed by  doxygen 1.5.6