//AB.h #ifndef AB_H #define AB_H #include #include typedef int Valeur; class Sommet; typedef Sommet* AB; void SortieLatex(AB Ar, std::string filepath); std::string* TikzRecursAB(int ligne,int gauche, int droite, int numeroPere, int typeFils, AB Ar); class Sommet { public: Valeur racine; AB Pere,SAG, SAD; bool FGP; int hauteur,balanceGmoinsD; Sommet(Valeur v); Sommet(Sommet& s); void GrefferSAG(AB g); void GrefferSAD(AB d); void SupprimerSAG(); void SupprimerSAD(); bool FeuilleP(); void RemplacerPourLePerePar(AB); std::string* TikzRecursAB(int ligne,int gauche, int droite, int numeroPere, int typeFils, AB Ar); }; #endif