Arc.h (1107B)
1 #ifndef ARC_H_INCLUDED 2 #define ARC_H_INCLUDED 3 4 #include <iostream> 5 #include <vector> 6 7 using namespace std; 8 9 class Arc 10 { 11 private : 12 unsigned int a; // Somment de départ 13 unsigned int b; // Sommet d'arrivé. 14 unsigned int capacite; // Capacité de l'arc. 15 unsigned int flot; // Flot circulant dans l'arc. 16 bool arcRetour; // Vrai si arc retour, faux sinon 17 18 public : 19 Arc(unsigned int a, unsigned int b, unsigned int c, unsigned int f); 20 Arc(const Arc*); 21 ~Arc(); 22 void setS1(unsigned int val); 23 unsigned int getS1() const; 24 void setS2(unsigned int val); 25 unsigned int getS2() const; 26 void setFlot(unsigned int val); 27 unsigned int getFlot() const; 28 void setCapacite(unsigned int val); 29 unsigned int getCapacite() const; 30 bool getArcRetour(); 31 void setArcRetour(bool); 32 void afficheArc(); 33 34 }; 35 36 // Liste d'arcs sans classement par sommets. 37 typedef vector<Arc*> listeArcs_t; 38 39 #endif // ARC_H_INCLUDED