#include <Line.h>
Types publics | |
typedef std::vector < SharedConstStation > ::iterator | iterator |
typedef std::vector < SharedConstStation > ::const_iterator | const_iterator |
Fonctions membres publiques | |
const std::wstring & | getName () const |
int | getID () const |
void | addStation (SharedConstStation newStation) |
SharedConstStation | getEndStationInThisDirection (SharedConstStation X, SharedConstStation Y) const |
Renvoi la station de fin, dans une direction donnée. | |
const_iterator | begin () const |
const_iterator | end () const |
Fonctions membres publiques statiques | |
static boost::shared_ptr< Line > | Create (int id, const std::wstring &name) |
typedef std::vector<SharedConstStation>::const_iterator Line::const_iterator |
typedef std::vector<SharedConstStation>::iterator Line::iterator |
void Line::addStation | ( | SharedConstStation | newStation | ) |
[in] | newStation | Station à ajouter à la ligne |
Line::const_iterator Line::begin | ( | ) | const [inline] |
SharedLine Line::Create | ( | int | id, | |
const std::wstring & | name | |||
) | [static] |
[in] | id | Identifiant unique |
[in] | name | Nom de la ligne |
Line::const_iterator Line::end | ( | ) | const [inline] |
SharedConstStation Line::getEndStationInThisDirection | ( | SharedConstStation | X, | |
SharedConstStation | Y | |||
) | const |
Renvoi la station de fin, dans une direction donnée.
Renvoi la station de fin, dans la direction définie par une station de départ et une station d'arrivée. Les deux stations doivent être différentes et non null.
[in] | X | Station de départ (ne doit pas être null) |
[in] | Y | Station d'arrivée (ne doit pas être null) |
int Line::getID | ( | ) | const [inline] |
const std::wstring & Line::getName | ( | ) | const [inline] |