ECP-VELOC Components
User documentation for all components
|
Go to the documentation of this file.
37 #include <sys/types.h>
65 #define KVTREE_VERSION "1.3.0"
66 #define KVTREE_SUCCESS (0)
67 #define KVTREE_MAX_FILENAME (1024)
69 #define KVTREE_PRINT_TREE (1)
70 #define KVTREE_PRINT_KEYVAL (2)
74 #define KVTREE_SORT_ASCENDING (0)
76 #define KVTREE_SORT_DESCENDING (1)
145 kvtree*
kvtree_setf(kvtree*
hash, kvtree* hash_value,
const char* format, ...);
int kvtree_unset_kv_int(kvtree *hash, const char *key, int val)
int kvtree_delete(kvtree **ptr_hash)
int kvtree_print_mode(const kvtree *hash, int indent, int mode)
int kvtree_write_persist(void **ptr_buf, size_t *ptr_size, const kvtree *hash)
ssize_t kvtree_read_fd(const char *file, int fd, kvtree *hash)
struct kvtree_elem_struct ** le_prev
kvtree * kvtree_extract(kvtree *hash, const char *key)
int kvtree_unset(kvtree *hash, const char *key)
struct kvtree_elem_struct * lh_first
int kvtree_read_scatter_single(const char *prefix, kvtree *data)
int kvtree_unset_all(kvtree *hash)
size_t kvtree_pack(char *buf, const kvtree *hash)
kvtree * kvtree_set_kv(kvtree *hash, const char *key, const char *val)
kvtree * kvtree_get(const kvtree *hash, const char *key)
int kvtree_size(const kvtree *hash)
size_t kvtree_unpack(const char *buf, kvtree *hash)
char * kvtree_get_val(const kvtree *hash, const char *key)
kvtree * kvtree_set_kv_int(kvtree *hash, const char *key, int val)
kvtree * kvtree_get_kv_int(const kvtree *hash, const char *key, int val)
size_t kvtree_pack_size(const kvtree *hash)
int kvtree_write_close_unlock(const char *file, int *fd, const kvtree *hash)
int kvtree_lock_open_read(const char *file, int *fd, kvtree *hash)
kvtree_elem * kvtree_elem_extract(kvtree *hash, const char *key)
int kvtree_merge(kvtree *hash1, const kvtree *hash2)
int kvtree_sort(kvtree *hash, int direction)
kvtree * kvtree_elem_hash(const kvtree_elem *elem)
int kvtree_read_file(const char *file, kvtree *hash)
kvtree * kvtree_setf(kvtree *hash, kvtree *hash_value, const char *format,...)
int kvtree_list_int(const kvtree *hash, int *num, int **list)
int kvtree_write_with_lock(const char *file, kvtree *hash)
int kvtree_write_file(const char *file, const kvtree *hash)
ssize_t kvtree_write_fd(const char *file, int fd, const kvtree *hash)
int kvtree_unset_kv(kvtree *hash, const char *key, const char *val)
int kvtree_read_with_lock(const char *file, kvtree *hash)
int kvtree_print(const kvtree *hash, int indent)
kvtree * kvtree_getf(const kvtree *hash, const char *format,...)
kvtree * kvtree_get_kv(const kvtree *hash, const char *key, const char *val)
kvtree_elem * kvtree_elem_extract_int(kvtree *hash, int key)
int kvtree_write_to_gather(const char *prefix, kvtree *data, int ranks)
kvtree_elem * kvtree_elem_next(const kvtree_elem *elem)
int kvtree_elem_key_int(const kvtree_elem *elem)
struct kvtree_elem_struct * le_next
int kvtree_log(const kvtree *hash, int log_level, int indent)
int kvtree_sort_int(kvtree *hash, int direction)
kvtree * kvtree_new(void)
struct kvtree_struct * hash
kvtree_elem * kvtree_elem_get(const kvtree *hash, const char *key)
kvtree_elem * kvtree_elem_first(const kvtree *hash)
struct kvtree_elem_struct::@0 pointers
kvtree * kvtree_set(kvtree *hash, const char *key, kvtree *hash_value)
char * kvtree_elem_key(const kvtree_elem *elem)
kvtree_elem * kvtree_elem_extract_by_addr(kvtree *hash, kvtree_elem *elem)
char * kvtree_elem_get_first_val(const kvtree *hash, const char *key)