|
Derive-C
|
#include <inttypes.h>#include <stdbool.h>#include <stdint.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <derive-c/algorithm/hash/hashers.h>#include <derive-c/alloc/std.h>#include <derive-c/core/prelude.h>#include <derive-c/derive/std.h>#include <derive-c/container/map/decomposed/template.h>
Go to the source code of this file.
Classes | |
| struct | report_id |
| struct | report |
| struct | fixed_string |
Macros | |
| #define | KEY uint32_t |
| #define | KEY_EQ uint32_t_eq |
| #define | KEY_HASH hash_id_uint32_t |
| #define | VALUE char const* |
| #define | NAME id_to_name |
| #define | KEY struct report_id |
| #define | KEY_EQ report_id_equality |
| #define | KEY_HASH report_id_hash |
| #define | KEY_DELETE report_id_delete |
| #define | VALUE struct report |
| #define | VALUE_DELETE report_delete |
| #define | NAME report_map |
| #define | KEY struct fixed_string |
| #define | KEY_EQ fixed_string_eq |
| #define | KEY_HASH fixed_string_hash |
| #define | VALUE uint32_t |
| #define | NAME 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 KEY uint32_t |
Definition at line 17 of file decomposed.c.
Definition at line 17 of file decomposed.c.
| #define KEY struct fixed_string |
Definition at line 17 of file decomposed.c.
| #define KEY_DELETE report_id_delete |
Definition at line 82 of file decomposed.c.
| #define KEY_EQ uint32_t_eq |
Definition at line 18 of file decomposed.c.
| #define KEY_EQ report_id_equality |
Definition at line 18 of file decomposed.c.
| #define KEY_EQ fixed_string_eq |
Definition at line 18 of file decomposed.c.
| #define KEY_HASH hash_id_uint32_t |
Definition at line 19 of file decomposed.c.
| #define KEY_HASH report_id_hash |
Definition at line 19 of file decomposed.c.
| #define KEY_HASH fixed_string_hash |
Definition at line 19 of file decomposed.c.
| #define NAME id_to_name |
Definition at line 21 of file decomposed.c.
| #define NAME report_map |
Definition at line 21 of file decomposed.c.
| #define NAME fixed_string_map |
Definition at line 21 of file decomposed.c.
| #define VALUE char const* |
Definition at line 20 of file decomposed.c.
| #define VALUE struct report |
Definition at line 20 of file decomposed.c.
| #define VALUE uint32_t |
Definition at line 20 of file decomposed.c.
| #define VALUE_DELETE report_delete |
Definition at line 84 of file decomposed.c.
| bool fixed_string_eq | ( | struct fixed_string const * | str1, |
| struct fixed_string const * | str2 ) |
Definition at line 123 of file decomposed.c.
| void fixed_string_example | ( | ) |
Definition at line 138 of file decomposed.c.

| size_t fixed_string_hash | ( | struct fixed_string const * | str | ) |
Definition at line 127 of file decomposed.c.
| void id_to_name_example | ( | ) |
Definition at line 36 of file decomposed.c.


| int main | ( | ) |
Definition at line 166 of file decomposed.c.

| void print_map | ( | id_to_name const * | map | ) |
Definition at line 24 of file decomposed.c.

| void report_delete | ( | struct report * | self | ) |
Definition at line 77 of file decomposed.c.


| void report_id_delete | ( | struct report_id * | self | ) |
Definition at line 70 of file decomposed.c.

Definition at line 61 of file decomposed.c.
| size_t report_id_hash | ( | struct report_id const * | report_id | ) |
Definition at line 65 of file decomposed.c.

| void report_map_example | ( | ) |
Definition at line 88 of file decomposed.c.

