37 lines
No EOL
598 B
C++
37 lines
No EOL
598 B
C++
//
|
|
// Created by onnig on 18/11/2021.
|
|
//
|
|
|
|
|
|
#include "Compteur.h"
|
|
#include "iostream"
|
|
using namespace std;
|
|
|
|
int Compteur::constructeurCopie=0;
|
|
int Compteur::constructeur=0;
|
|
int Compteur::destructeur=0;
|
|
|
|
|
|
void Compteur::ajouterConstructeur() {
|
|
constructeur++;
|
|
}
|
|
|
|
void Compteur::ajouterConstructeurCopie() {
|
|
constructeurCopie++;
|
|
}
|
|
|
|
void Compteur::ajouterDestructeur() {
|
|
destructeur++;
|
|
}
|
|
|
|
int Compteur::getNbConstructeurs() {
|
|
return constructeur;
|
|
}
|
|
|
|
int Compteur::getNbConstructeursCopie() {
|
|
return constructeurCopie;
|
|
}
|
|
|
|
int Compteur::getNbDestructeurs() {
|
|
return destructeur;
|
|
} |