MCPcopy Create free account
hub / github.com/comaps/comaps / IsEqualType

Method IsEqualType

libs/map/transit/transit_display.cpp:128–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126{}
127
128bool TransitStepInfo::IsEqualType(TransitStepInfo const & ts) const
129{
130 if (m_type != ts.m_type)
131 return false;
132
133 if (m_type != TransitType::Pedestrian && m_type != TransitType::IntermediatePoint)
134 return m_number == ts.m_number && m_colorARGB == ts.m_colorARGB;
135 return true;
136}
137
138void TransitRouteInfo::AddStep(TransitStepInfo const & step)
139{

Callers 1

AddStepMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected