Derive-C
|
#include <assert.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <derive-c/derives/std.h>
#include <derive-c/macros/iterators.h>
#include <derive-c/structures/hashmap/hashers.h>
#include <derive-c/structures/hashmap/template.h>
Go to the source code of this file.
Classes | |
struct | report_id |
struct | report |
struct | fixed_string |
Macros | |
#define | K uint32_t |
#define | V char const* |
#define | EQ uint32_t_eq |
#define | HASH hash_id_uint32_t |
#define | SELF id_to_name |
#define | K struct report_id |
#define | V struct report |
#define | EQ report_id_equality |
#define | HASH report_id_hash |
#define | K_DELETE report_id_delete |
#define | V_DELETE report_delete |
#define | SELF report_map |
#define | K struct fixed_string |
#define | V uint32_t |
#define | EQ fixed_string_eq |
#define | HASH fixed_string_hash |
#define | SELF fixed_string_map |
Functions | |
void | print_map (id_to_name const *map) |
void | id_to_name_example () |
bool | report_id_equality (struct report_id const *report_1, struct report_id const *report_2) |
size_t | report_id_hash (struct report_id const *report_id) |
void | report_id_delete (struct report_id *self) |
void | report_delete (struct report *self) |
void | report_map_example () |
bool | fixed_string_eq (struct fixed_string const *str1, struct fixed_string const *str2) |
size_t | fixed_string_hash (struct fixed_string const *str) |
void | fixed_string_example () |
int | main () |
#define EQ report_id_equality |
#define EQ fixed_string_eq |
#define HASH report_id_hash |
#define HASH fixed_string_hash |
#define K struct fixed_string |
#define K_DELETE report_id_delete |
#define V_DELETE report_delete |
bool fixed_string_eq | ( | struct fixed_string const * | str1, |
struct fixed_string const * | str2 ) |
Definition at line 114 of file hashmap.c.
void fixed_string_example | ( | ) |
Definition at line 129 of file hashmap.c.
size_t fixed_string_hash | ( | struct fixed_string const * | str | ) |
Definition at line 118 of file hashmap.c.
void id_to_name_example | ( | ) |
Definition at line 32 of file hashmap.c.
int main | ( | ) |
Definition at line 154 of file hashmap.c.
void print_map | ( | id_to_name const * | map | ) |
Definition at line 24 of file hashmap.c.
void report_delete | ( | struct report * | self | ) |
Definition at line 73 of file hashmap.c.
void report_id_delete | ( | struct report_id * | self | ) |
Definition at line 57 of file hashmap.c.
size_t report_id_hash | ( | struct report_id const * | report_id | ) |
Definition at line 61 of file hashmap.c.
void report_map_example | ( | ) |
Definition at line 84 of file hashmap.c.