MockSegment Class Reference

Detailed Description

Mock api::Segment implementation; see mock_geometry.h.

#include <include/maliput/test_utilities/mock_geometry.h>

Inheritance diagram for MockSegment:

Public Member Functions

 MockSegment (const api::SegmentId &id)
 Constructs a partially-initialized MockSegment. More...
- Public Member Functions inherited from 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
- Public Member Functions inherited from Segment
SegmentId id () const
 Returns the persistent identifier. More...
const Junctionjunction () 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 Lanelane (int index) const
 Returns the Lane indexed by index. More...

Additional Inherited Members

- Protected Member Functions inherited from Segment
 Segment ()=default

Constructor & Destructor Documentation

◆ MockSegment()

MockSegment ( const api::SegmentId id)

Constructs a partially-initialized MockSegment.

idthe ID

See geometry_base::Segment for discussion on initialization.

Member Function Documentation



The documentation for this class was generated from the following file: