Projet tutoré 3 - Graphes
|
Classe des sommets d'un graphe. Plus de détails...
#include <CSommet.h>
Fonctions membres publiques | |
CSommet (void) | |
CSommet (unsigned int uNid) | |
CSommet (CSommet &SOMParam) | |
~CSommet (void) | |
unsigned int | SOMGetId () |
unsigned int | SOMGetTailleA () |
unsigned int | SOMGetTailleS () |
void | SOMAjouterArcArrivant (unsigned int uDestination) |
void | SOMRetirerArcArrivant (unsigned int uDestination) |
int | SOMChercherArcArrivant (unsigned int uSOMIdDestination) |
CArc * | SOMLireListeA (unsigned int uPos) |
void | SOMAjouterArcSortant (unsigned int uDestination) |
void | SOMRetirerArcSortant (unsigned int uDestination) |
int | SOMChercherArcSortant (unsigned int uSOMIdDestination) |
CArc * | SOMLireListeS (unsigned int uPos) |
bool | SOMLies (CSommet &SOMParam) |
void | SOMInverser () |
void | SOMAfficherSommet () |
CSommet & | operator= (const CSommet &SOMParam) |
Attributs privés | |
unsigned int | uSOMId |
CArc ** | pARCSOMListeArcsArrivants |
unsigned int | uSOMTailleListeA |
CArc ** | pARCSOMListeArcsSortants |
unsigned int | uSOMTailleListeS |
CSommet::CSommet | ( | void | ) |
CSommet::CSommet | ( | unsigned int | uNid | ) |
Constructeur de confort
uNid | Le numéro du sommet |
Définition à la ligne 32 du fichier CSommet.cpp.
CSommet::CSommet | ( | CSommet & | SOMParam | ) |
Constructeur de recopie. Créé un objet CSommet copie de SOMParam.
SOMParam | L'objet CSommet à copier |
Définition à la ligne 48 du fichier CSommet.cpp.
CSommet::~CSommet | ( | void | ) |
Surcharge de l'operateur = Copie le contenu de SOMParam dans l'objet appelant
SOMParam | L'objet CSommet à copier |
Définition à la ligne 444 du fichier CSommet.cpp.
void CSommet::SOMAfficherSommet | ( | ) |
Affiche le graphe sur la sortie standard.
Définition à la ligne 405 du fichier CSommet.cpp.
void CSommet::SOMAjouterArcArrivant | ( | unsigned int | uDestination | ) |
Ajoute un arc arrivant au sommet.
uDestination | La destination de l'objet CArc à ajouter à la liste des arcs arrivants |
Définition à la ligne 122 du fichier CSommet.cpp.
void CSommet::SOMAjouterArcSortant | ( | unsigned int | uDestination | ) |
Ajoute un arc sortant au sommet.
uDestination | La destination de l'objet CArc à ajouter à la liste des arcs sortants |
Définition à la ligne 234 du fichier CSommet.cpp.
int CSommet::SOMChercherArcArrivant | ( | unsigned int | uSOMIdDestination | ) |
Recherche l'arc arrivant ayant pour point de départ le sommet numéro uSOMIdDestination.
uSOMIdDestination | Le numéro du sommet de départ de l'arc |
Définition à la ligne 189 du fichier CSommet.cpp.
int CSommet::SOMChercherArcSortant | ( | unsigned int | uSOMIdDestination | ) |
Recherche l'arc partant ayant pour point d'arrivé le sommet numéro uSOMIdDestination.
uSOMIdDestination | Le numéro du sommet d'arrivé de l'arc |
Définition à la ligne 303 du fichier CSommet.cpp.
unsigned int CSommet::SOMGetId | ( | void | ) |
Accesseur en lecture de uSOMId.
Définition à la ligne 89 du fichier CSommet.cpp.
unsigned int CSommet::SOMGetTailleA | ( | ) |
Accesseur en lecture de uSOMTailleListeArrivants.
Définition à la ligne 99 du fichier CSommet.cpp.
unsigned int CSommet::SOMGetTailleS | ( | ) |
Accesseur en lecture de uSOMTailleListeS.
Définition à la ligne 110 du fichier CSommet.cpp.
void CSommet::SOMInverser | ( | ) |
Inverse les arcs entrants et sortants. Les CArcs arrivants deviennent les CArcs sortants et vice-versa
Définition à la ligne 383 du fichier CSommet.cpp.
bool CSommet::SOMLies | ( | CSommet & | SOMParam | ) |
Teste si deux sommets sont liés dans le sens *this -> SOMParam
SOMParam | L'objet CSommet dont il faut vérifier la connexion avec this |
Définition à la ligne 345 du fichier CSommet.cpp.
CArc * CSommet::SOMLireListeA | ( | unsigned int | uPos | ) |
Lis l'arc arrivant en position uPos de la liste pARCSOMListeArcsArrivants.
uPos | La position de l'arc dans la liste pARCSOMListeArcsArrivants |
Définition à la ligne 213 du fichier CSommet.cpp.
CArc * CSommet::SOMLireListeS | ( | unsigned int | uPos | ) |
Lis l'arc en position uPos de la liste pARCSOMListeArcsSortants.
uPos | La position de l'arc dans la liste pARCSOMListeArcsSortants |
Définition à la ligne 325 du fichier CSommet.cpp.
void CSommet::SOMRetirerArcArrivant | ( | unsigned int | uDestination | ) |
Retire un arc arrivant au sommet.
uDestination | La destination de l'objet CArc à supprimer de la liste des arcs arrivants |
Définition à la ligne 147 du fichier CSommet.cpp.
void CSommet::SOMRetirerArcSortant | ( | unsigned int | uDestination | ) |
Retire un arc sortant au sommet.
uDestination | La destination de l'objet CArc à supprimer de la liste des arcs sortants |
Définition à la ligne 261 du fichier CSommet.cpp.
|
private |
|
private |
|
private |
|
private |
|
private |