ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/optimisation/src/gm_com.h
Revision: 199
Committed: Tue Jul 21 15:00:12 2009 UTC (15 years, 9 months ago) by picher
Content type: text/plain
File size: 4740 byte(s)
Log Message:
Projet d'optimisation

File Contents

# Content
1 //* [ FreSOP - base ] ********************************************* gm_com.h * >
2 //
3 // ver.: 20090114
4
5 #ifndef _gm_comh
6 #define _gm_comh
7
8 #include <stdio.h>
9
10 #include "bib_0000.h"
11 #include "bib_m012.h"
12 #include "maz.h"
13
14 #define co_lcc_max_nom_gm 9
15
16 //------------------------------------------------------------------------------
17 //-- référence rapide des méthodes publiques pour la classe o_gm_com
18 //--
19 //-- o_gm_com ( )
20 //-- ~o_gm_com ( )
21 //-- def_prms ( ... )
22 //-- ren_nbr_elements ( ... )
23 //-- ren_nom ( ... )
24 //-- ren_vno_elements ( ... )
25 //-- affiche_bio ( )
26 //-- element_dans_gm ( ... )
27
28 class o_gm_com {
29
30 //============================================================================
31 //=============================== ATTRIBUTS ==================================
32 //============================================================================
33
34 ulong nbr_elements ;
35
36 char nom[co_lcc_max_nom_gm] ;
37
38 ulong *vno_elements ; // vecteur contenant le numéro des éléments formant le groupe de mailles
39
40 //============================================================================
41 //=========================== MÉTHODES PRIVÉES ===============================
42 //============================================================================
43
44 //============================================================================
45 //== initialisation de la classe
46
47 ty_RSLT initialisation ( void );
48
49 //============================================================================
50 //== gestion de mémoire
51
52 ty_RSLT alloc_vno_elements ( void );
53
54 ty_RSLT desalloc_tout ( void );
55
56 ty_RSLT desalloc_vno_elements( void );
57
58 public:
59
60 //============================================================================
61 //========================== MÉTHODES PUBLIQUES ==============================
62 //============================================================================
63
64 o_gm_com ( void );
65
66 ~o_gm_com ( void );
67
68 //============================================================================
69 //== définition des paramètres de la classe
70
71 ty_RSLT def_prms ( char *_nom ,
72 ulong _nbr_elements ,
73 ulong *_vno_elements );
74
75 //============================================================================
76 //== accesseurs et mutateurs
77
78 ty_RSLT ren_nbr_elements ( ulong *_nbr_elements );
79
80 ty_RSLT ren_nom ( char *_nom );
81
82 ty_RSLT ren_vno_elements ( ulong **_vno_elements );
83
84 //============================================================================
85 //== autres méthodes
86
87 //-- affiche les infos sur la classe -----------------------------------------
88
89 ty_RSLT affiche_bio ( void );
90
91 //----------------------------------------------------------------------------
92 //-- détermine si l'élément se trouve dans le gm (renvoie co_oui ou co_non)
93 //--
94 //-- +--------------------------------------------+-------------------------+
95 //-- ¦ condition particulìère ¦ résultat d'exécution ¦
96 //-- +--------------------------------------------+-------------------------+
97 //-- ¦ l'élément est dans le gm ¦ co_oui ¦
98 //-- ¦ l'élément n'est pas dans le gm ¦ co_non ¦
99 //-- +--------------------------------------------+-------------------------+
100
101 ty_RSLT element_dans_gm ( ulong _no_element );
102
103 };
104
105 typedef o_gm_com *ptr_o_gm_com;
106
107 //******************************************************************************
108 // initialisation de gm_com h
109
110 ty_RSLT init_gm_com( void );
111
112 //******************************************************************************
113 // finitialisation de gm_com h
114
115 ty_RSLT finit_gm_com( void );
116
117 #endif
118
119 //* [ FreSOP - base ] ********************************************* gm_com.h * <

Properties

Name Value
svn:executable