Debian Codegraph @

src/population.h

raw
1
2 /***************************************************************************
3 population.h - Librairie d'objets permettant de manipuler des données
4 spécifiques aux populations
5 -------------------
6 begin : ven sep 01 10:25:55 CEST 2000
7 copyright : (C) 2000 by Olivier Langella CNRS UPR9034
8 email : [email protected]
9 ***************************************************************************/
10
11 /***************************************************************************
12 * *
13 * This program is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or *
16 * (at your option) any later version. *
17 * *
18 ***************************************************************************/
19
20 // population
21 #ifndef POPULATION_H
22 #define POPULATION_H
23
24 #include "strucpop.h"
25 #include "metapop.h"
26 #include "vecteurs.h"
27
28 class Population: public StrucPop {
29 public:
30 // Population(Jeupop * pdonnees, long nbind);
31 // Population(Jeupop * pdonnees, MetaPop * Pmetapop, long nbind);
32 Population(Jeupop * pdonnees);
33 Population(MetaPop * Pmetapop);
34 // Population(Jeupop * pdonnees, const StrucPop & popori): StrucPop(pdonnees,popori){};
35 // Population(Jeupop * pdonnees, const Population & popori);
36 Population(const StrucPop & popori, MetaPop * Pmetapop);
37 virtual ~Population();
38
39 bool DuType(const string &) const;
40
41 void set_nploidie();
42 void set_nploidie(unsigned int nploidie);
43
44 Individu * new_individual(string & name, unsigned int nploidie);
45 void AjouterIndividu(Individu * Pind);
46 void get_nomniveauxstruc(Titre & nom_niveaux) const;
47 unsigned int get_niveau() const;
48 string get_nom_chemin() const;
49
50 void f_rempliTabStrucPop(Vecteur<StrucPop*> &, unsigned int);
51
52 /** Suppression de la Population */
53 void SupprPop(StrucPop * Ppop);
54 friend class Jeupop;
55 /** Suppression d'un individu dans une Population */
56 void SupprIndividu(Individu * Pind) ;
57
58 void oPopulationsXML(unsigned int id, ostream & sortie, ostream & infos) ;
59
60 protected:
61 virtual void ifAjouterIndividu(const Individu * Pind);
62
63
64 };
65
66 #endif