decomposer.cc: directly include required headers
[barvinok.git] / zsolve / indexarray.h
blob948c6a31ec0f0dbdd49acac414ce7cc80f9f4502
1 /*
2 4ti2 -- A software package for algebraic, geometric and combinatorial
3 problems on linear spaces.
5 Copyright (C) 2006 4ti2 team.
6 Main author(s): Matthias Walter.
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 #ifndef _INDEXARRAY_H
24 #define _INDEXARRAY_H
26 #include <stdio.h>
28 typedef struct indexarray_t
30 int Size;
31 int *Data;
32 } indexarray_t;
33 typedef indexarray_t *IndexArray;
35 IndexArray createIndexArray();
36 /* create an indexarray */
38 void deleteIndexArray(IndexArray);
39 /* delete an indexarray (array) */
41 void appendToIndexArray(IndexArray, int);
42 /* append an index at the end of the array (array, index) */
44 void fprintIndexArray(FILE *, IndexArray);
45 /* print indexarray to a stream (stream, array) */
47 #endif