5 #include <barvinok/polylib.h>
6 #include <barvinok/options.h>
9 signed_cone(const mat_ZZ
& rays
, int sign
, unsigned long det
,
11 C(NULL
), rays(rays
), sign(sign
), det(det
), closed(closed
) {}
12 signed_cone(Polyhedron
*C
, const mat_ZZ
& rays
, int sign
, unsigned long det
= 0,
14 C(C
), rays(rays
), sign(sign
), det(det
), closed(closed
) {}
19 /* facet not containing ray is closed */
23 struct signed_cone_consumer
{
24 virtual void handle(const signed_cone
& sc
, barvinok_options
*options
) = 0;
27 struct vertex_decomposer
{
29 unsigned nbV
; // number of vertices
30 Param_Vertices
*V
; // current vertex
31 int vert
; // current vertex index
32 signed_cone_consumer
& scc
;
34 vertex_decomposer(Polyhedron
*P
, unsigned nbV
, signed_cone_consumer
& scc
) :
35 P(P
), nbV(nbV
), scc(scc
) {}
36 void decompose_at_vertex(Param_Vertices
*V
, int _i
, barvinok_options
*options
);
39 void barvinok_decompose(Polyhedron
*C
, signed_cone_consumer
& scc
,
40 barvinok_options
*options
);