maliput
|
Mock api::Segment implementation; see mock_geometry.h.
#include <include/maliput/test_utilities/mock_geometry.h>
Public Member Functions | |
MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN (MockSegment) | |
MockSegment (const api::SegmentId &id) | |
Constructs a partially-initialized MockSegment. More... | |
![]() | |
MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN (Segment) | |
Segment (const api::SegmentId &id) | |
Constructs a new Segment. More... | |
template<class T > | |
T * | AddLane (std::unique_ptr< T > lane) |
Adds lane to this Segment. More... | |
void | AttachToJunction (common::Passkey< Junction >, const api::Junction *junction) |
void | SetLaneIndexingCallback (common::Passkey< Junction >, const std::function< void(const api::Lane *)> &callback) |
~Segment () override=default | |
![]() | |
SegmentId | id () const |
Returns the persistent identifier. More... | |
const Junction * | junction () const |
Returns the Junction to which this Segment belongs. More... | |
int | num_lanes () const |
Returns the number of Lanes contained in this Segment. More... | |
const Lane * | lane (int index) const |
Returns the Lane indexed by index . More... | |
Additional Inherited Members | |
![]() | |
Segment ()=default | |
|
explicit |
Constructs a partially-initialized MockSegment.
id | the ID |
See geometry_base::Segment for discussion on initialization.
MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN | ( | MockSegment | ) |