A checkpoint is a waypoint that has to be visited. More...
#include <Checkpoint.hh>
Public Member Functions | |
Checkpoint () | |
Default constructor. More... | |
Checkpoint (const int _checkpointId, const int _waypointId) | |
Constructor. More... | |
Checkpoint (const Checkpoint &_other) | |
Copy constructor. More... | |
virtual | ~Checkpoint () |
Destructor. More... | |
int | CheckpointId () const |
Get the checkpoint Id. More... | |
bool | operator!= (const Checkpoint &_other) const |
Inequality. More... | |
Checkpoint & | operator= (const Checkpoint &_other) |
Assignment operator. More... | |
bool | operator== (const Checkpoint &_other) const |
Equality operator, result = this == _other. More... | |
bool | SetCheckpointId (const int _id) |
Set the identifier of the checkpoint. More... | |
bool | SetWaypointId (const int _id) |
Set the identifier of the waypoint. More... | |
bool | Valid () const |
int | WaypointId () const |
Get the waypoint Id. More... | |
A checkpoint is a waypoint that has to be visited.
It also has its own Id.
manifold::rndf::Checkpoint::Checkpoint | ( | ) |
Default constructor.
|
explicit |
Constructor.
[in] | _checkpointId | Checkpoint Id (a positive number). |
[in] | _waypointId | The waypoint Id associated to the checkpoint. |
manifold::rndf::Checkpoint::Checkpoint | ( | const Checkpoint & | _other | ) |
Copy constructor.
[in] | _other | Other checkpoint. |
|
virtual |
Destructor.
int manifold::rndf::Checkpoint::CheckpointId | ( | ) | const |
Get the checkpoint Id.
bool manifold::rndf::Checkpoint::operator!= | ( | const Checkpoint & | _other | ) | const |
Checkpoint& manifold::rndf::Checkpoint::operator= | ( | const Checkpoint & | _other | ) |
Assignment operator.
[in] | _other | The new checkpoint. |
bool manifold::rndf::Checkpoint::operator== | ( | const Checkpoint & | _other | ) | const |
Equality operator, result = this == _other.
[in] | _other | Checkpoint to check for equality |
bool manifold::rndf::Checkpoint::SetCheckpointId | ( | const int | _id | ) |
Set the identifier of the checkpoint.
[in] | _id | New unique Id. |
bool manifold::rndf::Checkpoint::SetWaypointId | ( | const int | _id | ) |
Set the identifier of the waypoint.
[in] | _id | New unique Id. |
bool manifold::rndf::Checkpoint::Valid | ( | ) | const |
int manifold::rndf::Checkpoint::WaypointId | ( | ) | const |
Get the waypoint Id.