ad_map_access
ContactLaneList.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>
27 namespace ad {
31 namespace map {
37 namespace lane {
38 
42 typedef std::vector<::ad::map::lane::ContactLane> ContactLaneList;
43 
44 } // namespace lane
45 } // namespace map
46 } // namespace ad
47 
51 #ifndef GEN_GUARD_VECTOR_AD_MAP_LANE_CONTACTLANE
52 #define GEN_GUARD_VECTOR_AD_MAP_LANE_CONTACTLANE
53 namespace std {
63 inline std::ostream &operator<<(std::ostream &os, vector<::ad::map::lane::ContactLane> 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::lane::ContactLaneList const &value)
84 {
85  stringstream sstream;
86  sstream << value;
87  return sstream.str();
88 }
89 } // namespace std
90 #endif // GEN_GUARD_VECTOR_AD_MAP_LANE_CONTACTLANE
ad
namespace ad
Definition: GeometryStoreItem.hpp:28
ad::map::lane::ContactLaneList
std::vector<::ad::map::lane::ContactLane > ContactLaneList
DataType ContactLaneList.
Definition: ContactLaneList.hpp:42
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
ContactLane.hpp