2 * Copyright 2010 INRIA Saclay
4 * Use of this software is governed by the GNU LGPLv2.1 license
6 * Written by Sven Verdoolaege, INRIA Saclay - Ile-de-France,
7 * Parc Club Orsay Universite, ZAC des vignes, 4 rue Jacques Monod,
13 static void *isl_obj_map_copy(void *v
)
15 return isl_map_copy((struct isl_map
*)v
);
18 static void isl_obj_map_free(void *v
)
20 isl_map_free((struct isl_map
*)v
);
23 static void isl_obj_map_print(void *v
, FILE *out
)
25 isl_map_print((struct isl_map
*)v
, out
, 0, ISL_FORMAT_ISL
);
28 static void *isl_obj_map_add(void *v1
, void *v2
)
30 return isl_map_union((struct isl_map
*)v1
, (struct isl_map
*)v2
);
33 struct isl_obj_vtable isl_obj_map_vtable
= {
40 static void *isl_obj_set_copy(void *v
)
42 return isl_set_copy((struct isl_set
*)v
);
45 static void isl_obj_set_free(void *v
)
47 isl_set_free((struct isl_set
*)v
);
50 static void isl_obj_set_print(void *v
, FILE *out
)
52 isl_set_print((struct isl_set
*)v
, out
, 0, ISL_FORMAT_ISL
);
55 static void *isl_obj_set_add(void *v1
, void *v2
)
57 return isl_set_union((struct isl_set
*)v1
, (struct isl_set
*)v2
);
60 struct isl_obj_vtable isl_obj_set_vtable
= {
67 static void *isl_obj_none_copy(void *v
)
72 static void isl_obj_none_free(void *v
)
76 static void isl_obj_none_print(void *v
, FILE *out
)
80 static void *isl_obj_none_add(void *v1
, void *v2
)
84 static struct isl_obj_vtable obj_none
= {
90 isl_obj_type isl_obj_none
= &obj_none
;
92 static void *isl_obj_pw_qp_copy(void *v
)
94 return isl_pw_qpolynomial_copy((struct isl_pw_qpolynomial
*)v
);
97 static void isl_obj_pw_qp_free(void *v
)
99 isl_pw_qpolynomial_free((struct isl_pw_qpolynomial
*)v
);
102 static void isl_obj_pw_qp_print(void *v
, FILE *out
)
104 isl_pw_qpolynomial_print((struct isl_pw_qpolynomial
*)v
, out
,
108 static void *isl_obj_pw_qp_add(void *v1
, void *v2
)
110 return isl_pw_qpolynomial_add((struct isl_pw_qpolynomial
*)v1
,
111 (struct isl_pw_qpolynomial
*)v2
);
114 struct isl_obj_vtable isl_obj_pw_qpolynomial_vtable
= {