|
INFO607
|
Go to the source code of this file.
Classes | |
| struct | SPoint |
| struct | STabPoint |
Typedefs | |
| typedef struct SPoint | Point |
| typedef struct STabPoint | TabPoints |
Functions | |
| void | TabPoints_init (TabPoints *tab) |
| void | TabPoints_ajoute (TabPoints *tab, Point p) |
| void | TabPoints_set (TabPoints *tab, int i, Point p) |
| Point | TabPoints_get (TabPoints *tab, int i) |
| int | TabPoints_nb (TabPoints *tab) |
| void | TabPoints_termine (TabPoints *tab) |
Ajoute si possible le point p à la fin du tableau de points tab.
| tab | un pointeur vers une structure TabPoint valide. |
| p | un point. |
Definition at line 12 of file points.c.
References STabPoint::nb, STabPoint::points, and STabPoint::taille.
Referenced by diskRandom().
| tab | un pointeur vers une structure TabPoint valide. |
| i | un index valide (entre 0 et TabPoints_nb( tab ) ) |
Definition at line 24 of file points.c.
References STabPoint::points.
Referenced by on_draw().
| void TabPoints_init | ( | TabPoints * | tab | ) |
Initialise le tableau de points tab. Il contient 0 points initialement, mais peut accueillir jusqu'à 100 points sans être agrandi.
| tab | un pointeur vers une structure TabPoint. |
Definition at line 5 of file points.c.
References STabPoint::nb, STabPoint::points, and STabPoint::taille.
Referenced by main().
| int TabPoints_nb | ( | TabPoints * | tab | ) |
| tab | un pointeur vers une structure TabPoint valide. |
Definition at line 30 of file points.c.
References STabPoint::nb.
Referenced by on_draw().
Modifie le i-ème point du tableau de points tab. Il devient le point p.
| tab | un pointeur vers une structure TabPoint valide. |
| i | un index valide (entre 0 et TabPoints_nb( tab ) ) |
| p | un point. |
Definition at line 18 of file points.c.
References STabPoint::points.
| void TabPoints_termine | ( | TabPoints * | tab | ) |
Indique que le tableau de points tab n'est plus utilisé et libère la mémoire associée. Il passe à une taille 0.
| tab | un pointeur vers une structure TabPoint valide. |
Definition at line 35 of file points.c.
References STabPoint::nb, STabPoint::points, and STabPoint::taille.