ad_rss
HeadingRangeVector.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: LGPL-2.1-only
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 rss {
35 namespace state {
36 
42 typedef std::vector<::ad::rss::state::HeadingRange> HeadingRangeVector;
43 
44 } // namespace state
45 } // namespace rss
46 } // namespace ad
47 
51 #ifndef GEN_GUARD_VECTOR_AD_RSS_STATE_HEADINGRANGE
52 #define GEN_GUARD_VECTOR_AD_RSS_STATE_HEADINGRANGE
53 namespace std {
63 inline std::ostream &operator<<(std::ostream &os, vector<::ad::rss::state::HeadingRange> 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::rss::state::HeadingRangeVector const &value)
84 {
85  stringstream sstream;
86  sstream << value;
87  return sstream.str();
88 }
89 } // namespace std
90 #endif // GEN_GUARD_VECTOR_AD_RSS_STATE_HEADINGRANGE
ad
namespace ad
Definition: LateralRelativePosition.hpp:26
ad::rss::state::HeadingRangeVector
std::vector<::ad::rss::state::HeadingRange > HeadingRangeVector
DataType HeadingRangeVector.
Definition: HeadingRangeVector.hpp:42
std::to_string
std::string to_string(::ad::rss::situation::LateralRelativePosition const &value)
overload of the std::to_string for LateralRelativePosition
Definition: LateralRelativePosition.hpp:160
HeadingRange.hpp