All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
SelectedRoad.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Routes.h"
6 
7 namespace Eegeo
8 {
9  namespace Routes
10  {
11  namespace Fitting
12  {
13  namespace NavGraphConforming
14  {
15  struct SelectedRoad
16  {
17  SelectedRoad(const NavGraphRoadFittingInfo* roadFittingInfo,
18  bool directionFromTo)
19  : m_roadFittingInfo(roadFittingInfo)
20  , m_directionFromTo(directionFromTo)
21  {
22 
23  }
24 
25 
26  bool operator <(const SelectedRoad& other) const
27  {
28  if (m_directionFromTo == other.m_directionFromTo)
29  {
30  return m_roadFittingInfo < other.m_roadFittingInfo;
31  }
32 
33  return m_directionFromTo < other.m_directionFromTo;
34  }
35 
36  private:
37  const NavGraphRoadFittingInfo* m_roadFittingInfo;
38  bool m_directionFromTo;
39  };
40  }
41  }
42  }
43 }