maliput_sparse
|
maliput::api::LaneEnd is not convenient in the building stage because there is no valid Lane pointer yet.
This struct aims for the same functionality but at the building phase. Note the non-default constructor definitions, those are required by maliput::api::LaneId whose default constructor / empty string is not allowed.
#include <include/maliput_sparse/builder/builder.h>
Public Member Functions | |
LaneEnd (const maliput::api::LaneId &lane_id_in, const maliput::api::LaneEnd::Which end_in) | |
Constructs a LaneEnd from a lane_id_in and end_in . More... | |
LaneEnd (const LaneEnd &lane_end) | |
Copy constructor. More... | |
LaneEnd (LaneEnd &&lane_end) | |
Move constructor. More... | |
LaneEnd & | operator= (LaneEnd other) |
Assingment operator. More... | |
bool | operator== (const LaneEnd &other) const |
Returns true when this LaneEnd is equal to other . More... | |
bool | operator!= (const LaneEnd &other) const |
Returns true when this LaneEnd is different from other . More... | |
bool | operator< (const LaneEnd &other) const |
Returns true when this LaneEnd is less from other . More... | |
Public Attributes | |
maliput::api::LaneId | lane_id |
maliput::api::LaneEnd::Which | end |
LaneEnd | ( | const maliput::api::LaneId & | lane_id_in, |
const maliput::api::LaneEnd::Which | end_in | ||
) |
bool operator!= | ( | const LaneEnd & | other | ) | const |
Returns true when this LaneEnd is different from other
.
bool operator< | ( | const LaneEnd & | other | ) | const |
Returns true when this LaneEnd is less from other
.
First, LaneIds are compared by their string values and then the end are used. ends are compared by their int-value representation.
maliput::api::LaneEnd::Which end |
maliput::api::LaneId lane_id |