SAÉ 2.02
Test doc
Contact.hpp
Go to the documentation of this file.
1 
8 #ifndef CONTACT_hpp
9 #define CONTACT_hpp
10 #include"Personne.hpp"
11 #include<list>
12 #include<iostream>
13 #include<set>
14 
15 namespace reseau{
16  class Contact {
17  reseau::Personne Proprietaire;
18  std::list<const reseau::Personne*> lesContacts{};
19  void Recursive(std::list<Contact*> Contacts, std::set<const reseau::Personne*>* set);
20  public:
21  Contact(const reseau::Personne& Proprietaire);
22  const Personne& getProprio() const;
23  bool ajouterContact(const reseau::Personne& unContact);
24  bool supprimerContact(const reseau::Personne& unContact);
25  bool rechercher(const Personne& unContact);
26  void afficherContactDirect();
27  void afficherContactIndirect(std::list<Contact*> Contacts);
28  // ~Contact();
29  };
30  std::ostream& operator<<(std::ostream& os, reseau::Personne p);
31  bool operator==(reseau::Personne p1, reseau::Personne p2);
32 }
33 
34 #endif
Contient des variables, des constantes et divers types de données relatifs à notre classe Personne...