Map Matching
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
pointroad.cpp
Go to the documentation of this file.
1 #include "pointroad.h"
2 
3 #include <iomanip>
4 
5 long PointRoad::counter = 0;
6 
8 {
9  m_vectorOfRoadId.push_back(roadId);
10 }
11 
13 {
14  std::cout << std::setprecision(10);
15  std::cout << (m_isNode ? "EXT" : " ") << " (" << m_x << ", " << m_y << ") [" << m_id << "]" << std::endl;
16  std::cout << "belong to " << m_vectorOfRoadId.size() << " roads\n\t";
17  for (const auto r : m_vectorOfRoadId)
18  std::cout << r << ' ';
19  std::cout << std::endl;
20 }
static long counter
Definition: pointroad.h:38
double m_y
Definition: point.h:89
void outputInfos()
Definition: pointroad.cpp:12
void updateBelongToRoad(long roadId)
Definition: pointroad.cpp:7
double m_x
Definition: point.h:88
std::vector< long > m_vectorOfRoadId
Definition: pointroad.h:41
bool m_isNode
Definition: pointroad.h:39
int m_id
Definition: pointroad.h:40