MockJunction Class Reference

Detailed Description

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

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

Inheritance diagram for MockJunction:

Public Member Functions

 MockJunction (const api::JunctionId &id)
 Constructs a partially-initialized MockJunction. More...
- Public Member Functions inherited from Junction
 Junction (const api::JunctionId &id)
 Constructs a Junction. More...
template<class T >
T * AddSegment (std::unique_ptr< T > segment)
 Adds segment to this Junction. More...
 ~Junction () override=default
void AttachToRoadGeometry (common::Passkey< RoadGeometry >, const api::RoadGeometry *road_geometry, const std::function< void(const api::Segment *)> &segment_indexing_callback, const std::function< void(const api::Lane *)> &lane_indexing_callback)
- Public Member Functions inherited from Junction
JunctionId id () const
 Returns the persistent identifier. More...
const RoadGeometryroad_geometry () const
 Returns the RoadGeometry to which this Junction belongs. More...
int num_segments () const
 Returns the number of Segments in the Junction. More...
const Segmentsegment (int index) const
 Returns the Segment indexed by index. More...

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ MockJunction()

MockJunction ( const api::JunctionId id)

Constructs a partially-initialized MockJunction.

idthe ID

See geometry_base::Junction for discussion on initialization.

Member Function Documentation



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