parent
fde958a259
commit
d2ed94c3ed
@ -0,0 +1,27 @@
|
|||||||
|
#ifndef CONTACT_hpp
|
||||||
|
#define CONTACT_hpp
|
||||||
|
#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(std::list<Contact*> Contacts);
|
||||||
|
// ~Contact();
|
||||||
|
};
|
||||||
|
std::ostream& operator<<(std::ostream& os, reseau::Personne p);
|
||||||
|
bool operator==(reseau::Personne p1, reseau::Personne p2);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in new issue