All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
FittedRangeForRoad.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Routes.h"
6 #include <vector>
7 
8 namespace Eegeo
9 {
10  namespace Routes
11  {
12  namespace Fitting
13  {
14  namespace NavGraphConforming
15  {
17  {
18  public:
19  FittedRangeForRoad(std::vector<const Candidate*> solution,
20  const NavGraphRoadFittingInfo* roadFittingInfo,
21  bool clipAtStart,
22  bool clipAtEnd,
23  bool isConformed)
24  : m_solution(solution)
25  , m_roadFittingInfo(roadFittingInfo)
26  , m_clipAtStart(clipAtStart)
27  , m_clipAtEnd(clipAtEnd)
28  , m_isConformed(isConformed)
29  {
30 
31  }
32 
33  const std::vector<const Candidate*>& GetSolution() const { return m_solution; }
34  const NavGraphRoadFittingInfo* GetRoadFittingInfo() const { return m_roadFittingInfo; }
35  bool GetClipAtStart() const { return m_clipAtStart; }
36  bool GetClipAtEnd() const { return m_clipAtEnd; }
37  bool IsConformed() const { return m_isConformed; }
38 
39  bool IsSolutionEmpty() const { return m_solution.empty(); }
40  private:
41  std::vector<const Candidate*> m_solution;
42  const NavGraphRoadFittingInfo* m_roadFittingInfo;
43  bool m_clipAtStart;
44  bool m_clipAtEnd;
45  bool m_isConformed;
46  };
47  }
48  }
49  }
50 }