 |
NVMLib
very early alpha
A library to optimally use a Hybrid RAM setup.
|
Go to the documentation of this file.
94 #include "../hashmap.h"
113 printf(
"%s",
entry->a);
139 strcpy(z->
a,
"THREE");
144 strcpy(a->
a,
"FOUR");
149 strcpy(b->
a,
"FIVE");
159 strcpy(d->
a,
"SEVEN");
163 strcpy(e->
a,
"EIGTH");
166 printf(
"Inserting : ");
172 printf(
"Inserting : ");
178 printf(
"Inserting : ");
184 printf(
"Inserting : ");
190 printf(
"Inserting : ");
196 printf(
"Inserting : ");
202 printf(
"Inserting : ");
208 printf(
"Inserting : ");
215 strcpy(x1->
a,
"TWO");
218 printf(
"Finding: FOUND %s\n", x1->
a);
221 printf(
"\nMAP SIZE : Before deletion -- %ld\n", map->size);
225 strcpy(x2->
a,
"TWO");
229 printf(
"Finding %s\n", x2->
a);
231 printf(
"Erased 1\n");
235 x = (
att *)malloc(
sizeof(
att));
241 printf(
"Finding %s\n", x->a);
243 printf(
"Erased 1\n");
246 printf(
"Erased 2\n");
250 printf(
"MAP SIZE : After deletion -- %ld\n", map->size);
254 y = (
att *)malloc(
sizeof(
att));
259 printf(
"MAP SIZE : After reinsertion -- %ld\n", map->size);
#define HASH_MAP_DESTROY(VALUE_TYPE)
DECLARE_HASHMAP(pool_free_slot_val)
void print_obj(att *entry)
int compare(att *a, att *b)
struct a_st att
File contains a example test program for the generic Hash map implemented.
#define HASH_MAP_ERASE(VALUE_TYPE)
#define HASH_MAP_INSERT(VALUE_TYPE)
#define HASH_MAP(VALUE_TYPE)
#define HASH_MAP_PRINT_FUNC(VALUE_TYPE, PRINT_OBJ_FUNC)
File contains a example test program for the generic Hash map implemented.
#define HASH_MAP_PRINT(VALUE_TYPE)
For Debug purposes.
#define HASH_MAP_CREATE(VALUE_TYPE)
#define DEFINE_HASHMAP(VALUE_TYPE, CMP, GET_HASH, FREE, REALLOC)
Definition of the declared HashMap.
#define HASH_MAP_FIND(VALUE_TYPE)