The Itinerary class represents an itinerary in the network.
More...
#include <Itinerary.hpp>
|
| | Itinerary (Id id, Id destination) |
| | Construct a new Itinerary object.
|
| |
|
| Itinerary (Itinerary &&)=default |
| |
|
Itinerary & | operator= (Itinerary &&)=default |
| |
|
| Itinerary (const Itinerary &)=delete |
| |
|
Itinerary & | operator= (const Itinerary &)=delete |
| |
|
void | load (const std::string &fileName) |
| |
| void | setPath (PathCollection pathCollection) |
| | Set the itinerary's path.
|
| |
| auto | id () const noexcept |
| | Get the itinerary's id.
|
| |
| auto | destination () const noexcept |
| | Get the itinerary's destination.
|
| |
| auto const & | path () const noexcept |
| | Get the itinerary's path.
|
| |
| auto | empty () const noexcept |
| | Check if the itinerary's path is empty.
|
| |
| void | save (const std::string &fileName) const |
| | Save the itinerary to a binary file.
|
| |
The Itinerary class represents an itinerary in the network.
- Template Parameters
-
| Id | The type of the itinerary's id. It must be an unsigned integral type. |
◆ Itinerary()
| dsf::mobility::Itinerary::Itinerary |
( |
Id | id, |
|
|
Id | destination ) |
Construct a new Itinerary object.
- Parameters
-
| destination | The itinerary's destination |
◆ destination()
| auto dsf::mobility::Itinerary::destination |
( |
| ) |
const |
|
inlinenoexcept |
Get the itinerary's destination.
- Returns
- Id, The itinerary's destination
◆ empty()
| auto dsf::mobility::Itinerary::empty |
( |
| ) |
const |
|
inlinenoexcept |
Check if the itinerary's path is empty.
- Returns
- true if the itinerary's path is empty, false otherwise
◆ id()
| auto dsf::mobility::Itinerary::id |
( |
| ) |
const |
|
inlinenoexcept |
Get the itinerary's id.
- Returns
- Id, The itinerary's id
◆ path()
| auto const & dsf::mobility::Itinerary::path |
( |
| ) |
const |
|
inlinenoexcept |
Get the itinerary's path.
- Returns
- PathCollection const&, The itinerary's path
◆ save()
| void dsf::mobility::Itinerary::save |
( |
const std::string & | fileName | ) |
const |
Save the itinerary to a binary file.
- Parameters
-
| fileName | The name of the file to save the itinerary to |
◆ setPath()
| void dsf::mobility::Itinerary::setPath |
( |
PathCollection | pathCollection | ) |
|
Set the itinerary's path.
- Parameters
-
The documentation for this class was generated from the following files:
- src/dsf/mobility/Itinerary.hpp
- src/dsf/mobility/Itinerary.cpp