Moka libraries
Main Page
Namespaces
Classes
Files
File List
File Members
Moka libraries
Namespaces
Classes
Files
File List
lib-corefinement
lib-extraction-images
lib-homology
lib-mesh
lib-rounding
lib-spamod
main
attributes
basic
color-table.hh
color.hh
definition.hh
ineq-table-2.hh
ineq-table-6.hh
ineq-use.hh
inequation.hh
matrix.hh
vector3d.hh
voxel.hh
analytic-view.cc
analytic-view.hh
euclidian-view.cc
euclidian-view.hh
gmap-ops.cc
gmap-ops.hh
ineq-op.cc
ineq-op.hh
k2-view.cc
k2-view.hh
spamod-types.hh
topologic-view.cc
topologic-view.hh
user.hh
voxel-view.cc
voxel-view.hh
spamod-api.cc
spamod-api.hh
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
ineq-use.hh
Go to the documentation of this file.
1
/*
2
* lib-spamod : Visualisation des objets en discret.
3
* Copyright (C) 2004, Moka Team, Université de Poitiers, Laboratoire SIC
4
* http://www.sic.sp2mi.univ-poitiers.fr/
5
* Copyright (C) 2009, Guillaume Damiand, CNRS, LIRIS,
6
* guillaume.damiand@liris.cnrs.fr, http://liris.cnrs.fr/
7
*
8
* This file is part of lib-spamod
9
*
10
* This program is free software: you can redistribute it and/or modify
11
* it under the terms of the GNU Lesser General Public License as published by
12
* the Free Software Foundation, either version 3 of the License, or
13
* (at your option) any later version.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU Lesser General Public License for more details.
19
*
20
* You should have received a copy of the GNU Lesser General Public License
21
* along with this program. If not, see <http://www.gnu.org/licenses/>.
22
*/
23
24
/******************************************************************************
25
* Fichier : Ineq_Use.h *
26
* Auteur : DEXET Martine *
27
*----------------------------------------------------------------------------*
28
* Ce fichier contient la spécification de la classe Ineq_Use. Cette classe *
29
* permet de représenter un tableau de booléens, comportant six éléments. *
30
* *
31
*****************************************************************************/
32
33
34
#ifndef INEQ_USE_H
35
#define INEQ_USE_H
36
37
38
39
/******************************************************************************
40
* Classe Ineq_Use *
41
*****************************************************************************/
42
43
class
Ineq_Use
{
44
45
public
:
46
47
// Constructeur.
48
Ineq_Use
();
49
50
// Méthode permettant la lecture d'un des booléens du tableau.
51
bool
Get_Use
(
int
i);
52
53
// Méthodes permettant l'écriture d'un booléen dans le tableau.
54
void
Set_Use
(
int
i,
bool
u);
55
void
Set_Used
(
int
i);
56
void
Set_Unused
(
int
i);
57
58
59
private
:
60
61
// Tableau comportant 6 éléments et contenant des variables booléennes.
62
bool
tab[6];
63
};
64
65
/******************************************************************************
66
* Fichier : Ineq_Use.inl *
67
* Auteur : DEXET Martine *
68
*----------------------------------------------------------------------------*
69
* Ce fichier contient l'implémentation des méthodes de la classe Ineq_Use. *
70
* *
71
*****************************************************************************/
72
73
74
75
// Constructeur.
76
inline
77
Ineq_Use::Ineq_Use
()
78
{
79
for
(
int
i=0; i<6; i++)
80
tab[i] =
true
;
81
}
82
83
84
// Méthode permettant la lecture d'un des booléens du tableau.
85
inline
86
bool
Ineq_Use::Get_Use
(
int
i)
87
{
88
return
tab[i];
89
}
90
91
92
// Méthodes permettant l'écriture d'un booléen dans le tableau.
93
inline
94
void
Ineq_Use::Set_Use
(
int
i,
bool
u)
95
{
96
tab[i] = u;
97
}
98
99
inline
100
void
Ineq_Use::Set_Used
(
int
i)
101
{
102
tab[i] =
true
;
103
}
104
105
inline
106
void
Ineq_Use::Set_Unused
(
int
i)
107
{
108
tab[i] =
false
;
109
}
110
111
#endif
lib-spamod
main
basic
ineq-use.hh
Generated on Tue Apr 9 2013 09:51:42 for Moka libraries by
1.8.2