diff --git a/src/Contact.hpp b/src/Contact.hpp index 5eaaf9e..e055474 100644 --- a/src/Contact.hpp +++ b/src/Contact.hpp @@ -3,18 +3,21 @@ #include"Personne.hpp" #include #include +#include namespace reseau{ class Contact { reseau::Personne Proprietaire; std::list lesContacts{}; + void Recursive(std::list Contacts, std::set* set); public: - Contact(const reseau::Personne& Proprietaire); + Contact(const reseau::Personne& Proprietaire); + const Personne& getProprio() const; bool ajouterContact(const reseau::Personne& unContact); bool supprimerContact(const reseau::Personne& unContact); bool rechercher(const Personne& unContact); void afficherContactDirect(); - void afficherContactIndirect(); + void afficherContactIndirect(std::list Contacts); // ~Contact(); }; std::ostream& operator<<(std::ostream& os, reseau::Personne p);