Update Contact.hpp

main
Joan PIERRON 3 years ago
parent 7c9315757c
commit 1a052aca98

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

Loading…
Cancel
Save