|
|
|
@ -3,18 +3,21 @@
|
|
|
|
|
#include"Personne.hpp"
|
|
|
|
|
#include<list>
|
|
|
|
|
#include<iostream>
|
|
|
|
|
#include<set>
|
|
|
|
|
|
|
|
|
|
namespace reseau{
|
|
|
|
|
class Contact {
|
|
|
|
|
reseau::Personne Proprietaire;
|
|
|
|
|
std::list<const reseau::Personne*> lesContacts{};
|
|
|
|
|
void Recursive(std::list<Contact*> Contacts, std::set<const reseau::Personne*>* set);
|
|
|
|
|
public:
|
|
|
|
|
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<Contact*> Contacts);
|
|
|
|
|
// ~Contact();
|
|
|
|
|
};
|
|
|
|
|
std::ostream& operator<<(std::ostream& os, reseau::Personne p);
|
|
|
|
|