34 lines
789 B
C++
34 lines
789 B
C++
//
|
|
// Created by onnig on 18/11/2021.
|
|
//
|
|
|
|
#ifndef X_BOTS_COMPTEUR_H
|
|
#define X_BOTS_COMPTEUR_H
|
|
|
|
|
|
class Compteur {
|
|
private:
|
|
static int constructeur;
|
|
static int constructeurCopie;
|
|
static int destructeur;
|
|
public:
|
|
// Compteur(){Compteur::ajouterConstructeur();};
|
|
// ~Compteur(){Compteur::ajouterDestructeur();};
|
|
// Compteur(const Compteur &cpt){ constructeur = cpt.constructeur; constructeurCopie = cpt.constructeurCopie; destructeur = cpt.destructeur;Compteur::ajouterConstructeurCopie();};
|
|
|
|
static void ajouterConstructeur();
|
|
|
|
static void ajouterConstructeurCopie();
|
|
|
|
static void ajouterDestructeur();
|
|
|
|
static int getNbConstructeurs();
|
|
|
|
static int getNbConstructeursCopie();
|
|
|
|
static int getNbDestructeurs();
|
|
|
|
};
|
|
|
|
|
|
#endif //X_BOTS_COMPTEUR_H
|