1 #ifndef TAB_POINT 2 #define TAB_POINT 3 4 #include "point.h" 5 6 typedef struct tabular_point { 7 point_t **tab; 8 int index; 9 int size; 10 } tabular_point_t; 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 tabular_point_t *tabular_point_create(void); 17 18 void tabular_point_free(tabular_point_t * t); 19 20 void tabular_point_realloc(tabular_point_t * t); 21 22 int tabular_point_get_index(tabular_point_t * t); 23 24 point_t *tabular_point_get_point(tabular_point_t * t, int index); 25 26 void tabular_point_add_point(tabular_point_t * t, point_t * pt); 27 28 void tabular_point_add(tabular_point_t * t, int numero, double x, double y); 29 30 #ifdef __cplusplus 31 } 32 #endif 33 34 #endif /* tab_fm */ 35