An exit clas that shows how to go from an exit waypoint to an entry waypoint. More...
#include <Exit.hh>
Public Member Functions | |
| Exit ()=default | |
| Default constructor. More... | |
| Exit (const UniqueId &_exit, const UniqueId &_entry) | |
| Constructor. More... | |
| Exit (const Exit &_other) | |
| Copy constructor. More... | |
| virtual | ~Exit () |
| Destructor. More... | |
| const UniqueId & | EntryId () const |
| EntryId. More... | |
| UniqueId & | EntryId () |
| Get a mutable reference to the unique Id of the entry waypoint. More... | |
| const UniqueId & | ExitId () const |
| ExitId. More... | |
| UniqueId & | ExitId () |
| Get a mutable reference to the unique Id of the exit waypoint. More... | |
| bool | Load (std::ifstream &_rndfFile, const int _x, const int _y, int &_lineNumber) |
| Parsing. More... | |
| bool | operator!= (const Exit &_other) const |
| Inequality. More... | |
| Exit & | operator= (const Exit &_other) |
| Assignment operator. More... | |
| bool | operator== (const Exit &_other) const |
| Operators. More... | |
| bool | Valid () const |
| Validation. More... | |
An exit clas that shows how to go from an exit waypoint to an entry waypoint.
The waypoints are represented with their unique Id.
|
default |
Default constructor.
Constructor.
| [in] | _exit | The unique ID of the exit waypoint. |
| [in] | _entry | The unique ID of the entry waypoint. |
| manifold::rndf::Exit::Exit | ( | const Exit & | _other | ) |
Copy constructor.
| [in] | _other | Other Exit. |
|
virtual |
Destructor.
| const UniqueId& manifold::rndf::Exit::EntryId | ( | ) | const |
EntryId.
Get the unique Id of the entry waypoint.
| UniqueId& manifold::rndf::Exit::EntryId | ( | ) |
Get a mutable reference to the unique Id of the entry waypoint.
| const UniqueId& manifold::rndf::Exit::ExitId | ( | ) | const |
ExitId.
Get the unique Id of the exit waypoint.
| UniqueId& manifold::rndf::Exit::ExitId | ( | ) |
Get a mutable reference to the unique Id of the exit waypoint.
| bool manifold::rndf::Exit::Load | ( | std::ifstream & | _rndfFile, |
| const int | _x, | ||
| const int | _y, | ||
| int & | _lineNumber | ||
| ) |
Parsing.
Load an exit from an input stream coming from a text file. The expected format is the one specified on the RNDF spec.
| [in,out] | _rndfFile | Input file stream. |
| [in] | _x | The expected "x" value from an x.y.z Id. |
| [in] | _y | The expected "y" value from an x.y.z Id. |
| [in,out] | _lineNumber | Line number pointed by the stream position indicator. |
| bool manifold::rndf::Exit::operator!= | ( | const Exit & | _other | ) | const |
| bool manifold::rndf::Exit::operator== | ( | const Exit & | _other | ) | const |
Operators.
Equality operator, result = this == _other
| [in] | _other | Exit to check for equality. |
| bool manifold::rndf::Exit::Valid | ( | ) | const |
Validation.