PIPS
tiling.c
Go to the documentation of this file.
1 /*
2  * THIS FILE HAS BEEN AUTOMATICALLY GENERATED BY NEWGEN.
3  *
4  * PLEASE DO NOT MODIFY IT.
5  */
6 
7 typedef void * Pvecteur;
8 typedef void * matrice;
9 
10 #include <stdio.h>
11 #include <stdlib.h>
12 #include <string.h>
13 #include "genC.h"
14 #include "tiling.h"
15 
16 
17 
18 /* TILING
19  */
21  return (tiling) gen_copy_tree((gen_chunk*) p);
22 }
24  gen_free((gen_chunk*) p);
25 }
27  return (tiling) gen_check((gen_chunk*) p, tiling_domain);
28 }
30  check_tiling(p);
31  return gen_consistent_p((gen_chunk*) p);
32 }
34  return gen_defined_p((gen_chunk*) p);
35 }
38 }
40  check_tiling(r);
41  check_tiling(v);
42  message_assert("defined references to domain tiling",
44  memcpy(r, v, sizeof(struct _newgen_struct_tiling_));
45 }
47  // should clear up contents...
48  free(p);
49 }
50 void write_tiling(FILE* f, tiling p) {
51  gen_write(f, (gen_chunk*) p);
52 }
54  return (tiling) gen_read(f);
55 }
57  return (tiling) gen_alloc(3*sizeof(gen_chunk), GEN_CHECK_ALLOC, tiling_domain, a1, a2);
58 }
59 
void * Pvecteur
Definition: tiling.c:7
void free_tiling(tiling p)
Definition: tiling.c:23
tiling make_tiling(matrice a1, Pvecteur a2)
Definition: tiling.c:56
tiling check_tiling(tiling p)
Definition: tiling.c:26
list gen_tiling_cons(tiling p, list l)
Definition: tiling.c:36
tiling copy_tiling(tiling p)
TILING.
Definition: tiling.c:20
bool tiling_consistent_p(tiling p)
Definition: tiling.c:29
void tiling_non_recursive_free(tiling p)
Definition: tiling.c:46
void * matrice
Definition: tiling.c:8
void write_tiling(FILE *f, tiling p)
Definition: tiling.c:50
tiling read_tiling(FILE *f)
Definition: tiling.c:53
void tiling_assign_contents(tiling r, tiling v)
Definition: tiling.c:39
bool tiling_defined_p(tiling p)
Definition: tiling.c:33
#define GEN_CHECK_ALLOC
Definition: genC.h:307
void gen_free(gen_chunk *obj)
version without shared_pointers.
Definition: genClib.c:992
gen_chunk * gen_alloc(int size, int gen_check_p, int dom,...)
allocates something in newgen.
Definition: genClib.c:298
int gen_consistent_p(gen_chunk *obj)
GEN_CONSISTENT_P dynamically checks the type correctness of OBJ.
Definition: genClib.c:2398
int gen_defined_p(gen_chunk *obj)
Definition: genClib.c:2438
gen_chunk * gen_check(gen_chunk *obj, int t)
GEN_CHECK checks that the gen_chunk received OBJ is of the appropriate TYPE.
Definition: genClib.c:2356
gen_chunk * gen_read(FILE *file)
GEN_READ reads any object from the FILE stream.
Definition: genClib.c:2323
gen_chunk * gen_copy_tree(gen_chunk *obj)
Definition: genClib.c:1429
void gen_write(FILE *fd, gen_chunk *obj)
GEN_WRITE writes the OBJect on the stream FD.
Definition: genClib.c:1745
void free(void *)
list gen_typed_cons(_int type, const void *item, const list next)
CONS a list with minimal type checking this cannot be done within the CONS macro because possible fun...
Definition: list.c:900
Value * matrice
package matrice
Definition: matrice-local.h:71
#define message_assert(msg, ex)
Definition: newgen_assert.h:47
int f(int off1, int off2, int n, float r[n], float a[n], float b[n])
Definition: offsets.c:15
le type des coefficients dans les vecteurs: Value est defini dans le package arithmetique
Definition: vecteur-local.h:89
The structure used to build lists in NewGen.
Definition: newgen_list.h:41
#define TILING_NEWGEN_DOMAIN
Definition: tiling.h:29
#define tiling_domain
newgen_matrice_domain_defined
Definition: tiling.h:26
A gen_chunk is used to store every object.
Definition: genC.h:58