Map Matching
Main Page
Related Pages
Classes
Files
File List
File Members
•
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
7
void
PointRoad::updateBelongToRoad
(
long
roadId)
8
{
9
m_vectorOfRoadId
.push_back(roadId);
10
}
11
12
void
PointRoad::outputInfos
()
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
}
PointRoad::counter
static long counter
Definition:
pointroad.h:38
Point::m_y
double m_y
Definition:
point.h:89
PointRoad::outputInfos
void outputInfos()
Definition:
pointroad.cpp:12
PointRoad::updateBelongToRoad
void updateBelongToRoad(long roadId)
Definition:
pointroad.cpp:7
Point::m_x
double m_x
Definition:
point.h:88
PointRoad::m_vectorOfRoadId
std::vector< long > m_vectorOfRoadId
Definition:
pointroad.h:41
pointroad.h
PointRoad::m_isNode
bool m_isNode
Definition:
pointroad.h:39
PointRoad::m_id
int m_id
Definition:
pointroad.h:40
pointroad.cpp
Generated on Sat Dec 3 2016 18:38:42 for Map Matching by
1.8.11