ad_rss_map_integration
RssVehicleAccelerationRestrictions.hpp
Go to the documentation of this file.
1 /*
2  * ----------------- BEGIN LICENSE BLOCK ---------------------------------
3  *
4  * Copyright (C) 2018-2022 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 <memory>
22 #include <sstream>
23 #include "ad/physics/AccelerationRange.hpp"
27 namespace ad {
31 namespace rss {
35 namespace map {
36 
41 {
45  typedef std::shared_ptr<RssVehicleAccelerationRestrictions> Ptr;
46 
50  typedef std::shared_ptr<RssVehicleAccelerationRestrictions const> ConstPtr;
51 
56 
61 
66 
71 
80 
89 
98  {
100  }
101 
110  {
111  return !operator==(other);
112  }
113 
117  ::ad::physics::AccelerationRange longitudinal_range;
118 
124  ::ad::physics::AccelerationRange lateral_combined_range;
125 };
126 
127 } // namespace map
128 } // namespace rss
129 } // namespace ad
130 
134 #ifndef GEN_GUARD_AD_RSS_MAP_RSSVEHICLEACCELERATIONRESTRICTIONS
135 #define GEN_GUARD_AD_RSS_MAP_RSSVEHICLEACCELERATIONRESTRICTIONS
139 namespace ad {
143 namespace rss {
147 namespace map {
148 
158 inline std::ostream &operator<<(std::ostream &os, RssVehicleAccelerationRestrictions const &_value)
159 {
160  os << "RssVehicleAccelerationRestrictions(";
161  os << "longitudinal_range:";
162  os << _value.longitudinal_range;
163  os << ",";
164  os << "lateral_combined_range:";
165  os << _value.lateral_combined_range;
166  os << ")";
167  return os;
168 }
169 
170 } // namespace map
171 } // namespace rss
172 } // namespace ad
173 
174 namespace std {
179 {
180  stringstream sstream;
181  sstream << value;
182  return sstream.str();
183 }
184 } // namespace std
185 
189 template <> struct fmt::formatter<::ad::rss::map::RssVehicleAccelerationRestrictions> : formatter<string_view>
190 {
191  template <typename FormatContext>
192  auto format(::ad::rss::map::RssVehicleAccelerationRestrictions const &value, FormatContext &ctx)
193  {
194  return formatter<string_view>::format(std::to_string(value), ctx);
195  }
196 };
197 
198 #endif // GEN_GUARD_AD_RSS_MAP_RSSVEHICLEACCELERATIONRESTRICTIONS
std::string to_string(::ad::rss::map::RouteAccelerations const &value)
overload of the std::to_string for RouteAccelerations
Definition: RouteAccelerations.hpp:229
std::ostream & operator<<(std::ostream &os, RouteAccelerations const &_value)
standard ostream operator
Definition: RouteAccelerations.hpp:194
namespace ad
Definition: RouteAccelerations.hpp:33
DataType RssVehicleAccelerationRestrictions.
Definition: RssVehicleAccelerationRestrictions.hpp:41
bool operator==(const RssVehicleAccelerationRestrictions &other) const
standard comparison operator
Definition: RssVehicleAccelerationRestrictions.hpp:97
RssVehicleAccelerationRestrictions & operator=(const RssVehicleAccelerationRestrictions &other)=default
standard assignment operator
::ad::physics::AccelerationRange lateral_combined_range
Definition: RssVehicleAccelerationRestrictions.hpp:124
RssVehicleAccelerationRestrictions(const RssVehicleAccelerationRestrictions &other)=default
standard copy constructor
RssVehicleAccelerationRestrictions & operator=(RssVehicleAccelerationRestrictions &&other)=default
standard move operator
std::shared_ptr< RssVehicleAccelerationRestrictions const > ConstPtr
Smart pointer on constant RssVehicleAccelerationRestrictions.
Definition: RssVehicleAccelerationRestrictions.hpp:50
~RssVehicleAccelerationRestrictions()=default
standard destructor
std::shared_ptr< RssVehicleAccelerationRestrictions > Ptr
Smart pointer on RssVehicleAccelerationRestrictions.
Definition: RssVehicleAccelerationRestrictions.hpp:45
::ad::physics::AccelerationRange longitudinal_range
Definition: RssVehicleAccelerationRestrictions.hpp:117
RssVehicleAccelerationRestrictions()=default
standard constructor
RssVehicleAccelerationRestrictions(RssVehicleAccelerationRestrictions &&other)=default
standard move constructor
bool operator!=(const RssVehicleAccelerationRestrictions &other) const
standard comparison operator
Definition: RssVehicleAccelerationRestrictions.hpp:109