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