source: Daodan/MSYS2/mingw32/include/isl/hmap.h@ 1177

Last change on this file since 1177 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 1.6 KB
Line 
1#include <isl/ctx.h>
2#include <isl/maybe.h>
3#include <isl/printer.h>
4
5#if defined(__cplusplus)
6extern "C" {
7#endif
8
9#define ISL_xCAT(A,B) A ## B
10#define ISL_CAT(A,B) ISL_xCAT(A,B)
11#define ISL_xFN(TYPE,NAME) TYPE ## _ ## NAME
12#define ISL_FN(TYPE,NAME) ISL_xFN(TYPE,NAME)
13
14struct ISL_HMAP;
15typedef struct ISL_HMAP ISL_HMAP;
16
17__isl_give ISL_HMAP *ISL_FN(ISL_HMAP,alloc)(isl_ctx *ctx, int min_size);
18__isl_give ISL_HMAP *ISL_FN(ISL_HMAP,copy)(__isl_keep ISL_HMAP *hmap);
19__isl_null ISL_HMAP *ISL_FN(ISL_HMAP,free)(__isl_take ISL_HMAP *hmap);
20
21isl_ctx *ISL_FN(ISL_HMAP,get_ctx)(__isl_keep ISL_HMAP *hmap);
22
23__isl_give ISL_MAYBE(ISL_VAL) ISL_FN(ISL_HMAP,try_get)(
24 __isl_keep ISL_HMAP *hmap, __isl_keep ISL_KEY *key);
25isl_bool ISL_FN(ISL_HMAP,has)(__isl_keep ISL_HMAP *hmap,
26 __isl_keep ISL_KEY *key);
27__isl_give ISL_VAL *ISL_FN(ISL_HMAP,get)(__isl_keep ISL_HMAP *hmap,
28 __isl_take ISL_KEY *key);
29__isl_give ISL_HMAP *ISL_FN(ISL_HMAP,set)(__isl_take ISL_HMAP *hmap,
30 __isl_take ISL_KEY *key, __isl_take ISL_VAL *val);
31__isl_give ISL_HMAP *ISL_FN(ISL_HMAP,drop)(__isl_take ISL_HMAP *hmap,
32 __isl_take ISL_KEY *key);
33
34isl_stat ISL_FN(ISL_HMAP,foreach)(__isl_keep ISL_HMAP *hmap,
35 isl_stat (*fn)(__isl_take ISL_KEY *key, __isl_take ISL_VAL *val,
36 void *user),
37 void *user);
38
39__isl_give isl_printer *ISL_FN(isl_printer_print,ISL_HMAP_SUFFIX)(
40 __isl_take isl_printer *p, __isl_keep ISL_HMAP *hmap);
41void ISL_FN(ISL_HMAP,dump)(__isl_keep ISL_HMAP *hmap);
42
43#undef ISL_xCAT
44#undef ISL_CAT
45#undef ISL_KEY
46#undef ISL_VAL
47#undef ISL_xFN
48#undef ISL_FN
49#undef ISL_xHMAP
50#undef ISL_yHMAP
51#undef ISL_HMAP
52
53#if defined(__cplusplus)
54}
55#endif
Note: See TracBrowser for help on using the repository browser.