maliput_sparse
LaneEnd Struct Reference

Detailed Description

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...
 
LaneEndoperator= (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
 

Constructor & Destructor Documentation

◆ LaneEnd() [1/3]

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.

Parameters
lane_id_inThe LaneId that this LaneEnd refers to.
end_inThe end this LaneEnd refers to.

◆ LaneEnd() [2/3]

LaneEnd ( const LaneEnd lane_end)

Copy constructor.

◆ LaneEnd() [3/3]

LaneEnd ( LaneEnd &&  lane_end)

Move constructor.

Member Function Documentation

◆ operator!=()

bool operator!= ( const LaneEnd other) const

Returns true when this LaneEnd is different from other.

◆ operator<()

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.

◆ operator=()

LaneEnd& operator= ( LaneEnd  other)

Assingment operator.

◆ operator==()

bool operator== ( const LaneEnd other) const

Returns true when this LaneEnd is equal to other.

Member Data Documentation

◆ end

maliput::api::LaneEnd::Which end

◆ lane_id

maliput::api::LaneId lane_id

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