3 #include <isl/printer.h>
5 #if defined(__cplusplus)
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)
15 typedef struct ISL_HMAP ISL_HMAP
;
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
);
21 isl_ctx
*ISL_FN(ISL_HMAP
,get_ctx
)(__isl_keep ISL_HMAP
*hmap
);
23 __isl_give
ISL_MAYBE(ISL_VAL
) ISL_FN(ISL_HMAP
,try_get
)(
24 __isl_keep ISL_HMAP
*hmap
, __isl_keep ISL_KEY
*key
);
25 isl_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
);
34 isl_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
,
39 __isl_give isl_printer
*ISL_FN(isl_printer_print
,ISL_HMAP_SUFFIX
)(
40 __isl_take isl_printer
*p
, __isl_keep ISL_HMAP
*hmap
);
41 void ISL_FN(ISL_HMAP
,dump
)(__isl_keep ISL_HMAP
*hmap
);
53 #if defined(__cplusplus)