File: int_str_table.h

package info (click to toggle)
libcuckoo 0.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,036 kB
  • sloc: cpp: 16,538; ansic: 72; python: 34; sh: 15; makefile: 9
file content (20 lines) | stat: -rw-r--r-- 691 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Include guard
#ifndef INT_STR_TABLE_H
#define INT_STR_TABLE_H

// Below we define the constants the table template uses to fill in the
// interface.
//
// All table functions will be prefixed with `int_str_table`
#define CUCKOO_TABLE_NAME int_str_table
// The type of the key is `int`
#define CUCKOO_KEY_TYPE int
// The type of the mapped value is `const char *`
#define CUCKOO_MAPPED_TYPE const char *

// Including the header after filling in the constants will populate the
// interface. See the template file itself for specific function names; most of
// them correspond to methods in the C++ implementation.
#include <libcuckoo-c/cuckoo_table_template.h>

#endif // INT_STR_TABLE_H