2 * Copyright 2008-2009 Katholieke Universiteit Leuven
4 * Use of this software is governed by the GNU LGPLv2.1 license
6 * Written by Sven Verdoolaege, K.U.Leuven, Departement
7 * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
14 #include <isl/printer.h>
16 #if defined(__cplusplus)
20 #define ISL_DECLARE_LIST(EL) \
22 struct isl_##EL##_list; \
23 typedef struct isl_##EL##_list isl_##EL##_list; \
24 isl_ctx *isl_##EL##_list_get_ctx(__isl_keep isl_##EL##_list *list); \
25 __isl_give isl_##EL##_list *isl_##EL##_list_alloc(isl_ctx *ctx, int n); \
26 __isl_give isl_##EL##_list *isl_##EL##_list_copy( \
27 __isl_keep isl_##EL##_list *list); \
28 void isl_##EL##_list_free(__isl_take isl_##EL##_list *list); \
29 __isl_give isl_##EL##_list *isl_##EL##_list_add( \
30 __isl_take isl_##EL##_list *list, \
31 __isl_take struct isl_##EL *el); \
32 int isl_##EL##_list_n_##EL(__isl_keep isl_##EL##_list *list); \
33 __isl_give struct isl_##EL *isl_##EL##_list_get_##EL( \
34 __isl_keep isl_##EL##_list *list, int index); \
35 int isl_##EL##_list_foreach(__isl_keep isl_##EL##_list *list, \
36 int (*fn)(__isl_take struct isl_##EL *el, void *user), \
38 __isl_give isl_printer *isl_printer_print_##EL##_list( \
39 __isl_take isl_printer *p, __isl_keep isl_##EL##_list *list); \
40 void isl_##EL##_list_dump(__isl_keep isl_##EL##_list *list);
42 ISL_DECLARE_LIST(basic_set
)
45 ISL_DECLARE_LIST(band
)
47 #if defined(__cplusplus)