-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPrivateIndividual.cpp
More file actions
102 lines (83 loc) · 2.85 KB
/
PrivateIndividual.cpp
File metadata and controls
102 lines (83 loc) · 2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/*************************************************************************
PrivateIndividual - description
-------------------
début : $DATE$
copyright : (C) $YEAR$ par $AUTHOR$
e-mail : $EMAIL$
*************************************************************************/
//---------- Réalisation de la classe <PrivateIndividual> (fichier PrivateIndividual.cpp) ------------
//---------------------------------------------------------------- INCLUDE
//-------------------------------------------------------- Include système
#include <iostream>
using namespace std;
//------------------------------------------------------ Include personnel
#include "PrivateIndividual.h"
//------------------------------------------------------------- Constantes
//----------------------------------------------------------------- PUBLIC
//----------------------------------------------------- Méthodes publiques
// type PrivateIndividual::Méthode ( liste des paramètres )
// Algorithme :
//
//{
//} //----- Fin de Méthode
int PrivateIndividual::GetPoints(void) const
{
return this->numberOfPoints;
}
bool PrivateIndividual::GetFiability(void) const
{
return this->fiability;
}
void PrivateIndividual::SetPoints(int points)
{
this->numberOfPoints = points;
}
void PrivateIndividual::SetFiability(bool fiab)
{
this->fiability = fiab;
}
void PrivateIndividual::IncrementerNbPoints()
{
this->numberOfPoints++;
}
//------------------------------------------------- Surcharge d'opérateurs
PrivateIndividual &PrivateIndividual::operator=(const PrivateIndividual &unPrivateIndividual)
// Algorithme :
//
{
} //----- Fin de operator =
//-------------------------------------------- Constructeurs - destructeur
PrivateIndividual::PrivateIndividual(const PrivateIndividual &unPrivateIndividual)
// Algorithme :
//
{
#ifdef MAP
cout << "Appel au constructeur de copie de <PrivateIndividual>" << endl;
#endif
} //----- Fin de PrivateIndividual (constructeur de copie)
PrivateIndividual::PrivateIndividual()
// Algorithme :
//
{
#ifdef MAP
cout << "Appel au constructeur de <PrivateIndividual>" << endl;
#endif
} //----- Fin de PrivateIndividual
PrivateIndividual::PrivateIndividual(string id) : User(id)
// Algorithme :
//
{
#ifdef MAP
cout << "Appel au constructeur de <PrivateIndividual>" << endl;
#endif
} //----- Fin de PrivateIndividual
PrivateIndividual::~PrivateIndividual()
// Algorithme :
//
{
#ifdef MAP
cout << "Appel au destructeur de <PrivateIndividual>" << endl;
#endif
} //----- Fin de ~PrivateIndividual
//------------------------------------------------------------------ PRIVE
//----------------------------------------------------- Méthodes protégées