ad_map_access
generated
include
ad
map
point
GeoEdge.hpp
Go to the documentation of this file.
1
/*
2
* ----------------- BEGIN LICENSE BLOCK ---------------------------------
3
*
4
* Copyright (C) 2018-2020 Intel Corporation
5
*
6
* SPDX-License-Identifier: MIT
7
*
8
* ----------------- END LICENSE BLOCK -----------------------------------
9
*/
10
18
#pragma once
19
20
#include <iostream>
21
#include <sstream>
22
#include <vector>
23
#include "
ad/map/point/GeoPoint.hpp
"
27
namespace
ad
{
31
namespace
map {
37
namespace
point {
38
42
typedef
std::vector<::ad::map::point::GeoPoint>
GeoEdge
;
43
44
}
// namespace point
45
}
// namespace map
46
}
// namespace ad
47
51
#ifndef GEN_GUARD_VECTOR_AD_MAP_POINT_GEOPOINT
52
#define GEN_GUARD_VECTOR_AD_MAP_POINT_GEOPOINT
53
namespace
std {
63
inline
std::ostream &operator<<(std::ostream &os, vector<::ad::map::point::GeoPoint>
const
&_value)
64
{
65
os <<
"["
;
66
for
(
auto
it = _value.begin(); it != _value.end(); it++)
67
{
68
if
(it != _value.begin())
69
{
70
os <<
","
;
71
}
72
os << *it;
73
}
74
os <<
"]"
;
75
return
os;
76
}
77
}
// namespace std
78
79
namespace
std {
83
inline
std::string
to_string
(::
ad::map::point::GeoEdge
const
&value)
84
{
85
stringstream sstream;
86
sstream << value;
87
return
sstream.str();
88
}
89
}
// namespace std
90
#endif // GEN_GUARD_VECTOR_AD_MAP_POINT_GEOPOINT
ad
namespace ad
Definition:
GeometryStoreItem.hpp:28
GeoPoint.hpp
std::to_string
std::string to_string(::ad::map::access::GeometryStoreItem const &value)
overload of the std::to_string for GeometryStoreItem
Definition:
GeometryStoreItem.hpp:183
ad::map::point::GeoEdge
std::vector<::ad::map::point::GeoPoint > GeoEdge
DataType GeoEdge.
Definition:
GeoEdge.hpp:42
Generated by
1.8.17