ad_rss_map_integration
RssConstellationConfiguration.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>
25 #include "ad/rss/world/RssDynamics.hpp"
29 namespace ad {
33 namespace rss {
37 namespace map {
38 
43 {
47  typedef std::shared_ptr<RssConstellationConfiguration> Ptr;
48 
52  typedef std::shared_ptr<RssConstellationConfiguration const> ConstPtr;
53 
58 
63 
68 
73 
82 
91 
99  bool operator==(const RssConstellationConfiguration &other) const
100  {
104  }
105 
113  bool operator!=(const RssConstellationConfiguration &other) const
114  {
115  return !operator==(other);
116  }
117 
122  ::ad::rss::map::RssConstellationCreationMode::Ignore};
123 
128 
132  ::ad::rss::world::RssDynamics ego_vehicle_dynamics;
133 
137  ::ad::rss::world::RssDynamics object_dynamics;
138 };
139 
140 } // namespace map
141 } // namespace rss
142 } // namespace ad
143 
147 #ifndef GEN_GUARD_AD_RSS_MAP_RSSCONSTELLATIONCONFIGURATION
148 #define GEN_GUARD_AD_RSS_MAP_RSSCONSTELLATIONCONFIGURATION
152 namespace ad {
156 namespace rss {
160 namespace map {
161 
171 inline std::ostream &operator<<(std::ostream &os, RssConstellationConfiguration const &_value)
172 {
173  os << "RssConstellationConfiguration(";
174  os << "constellation_creation_mode:";
175  os << _value.constellation_creation_mode;
176  os << ",";
177  os << "restrict_speed_limit_mode:";
178  os << _value.restrict_speed_limit_mode;
179  os << ",";
180  os << "ego_vehicle_dynamics:";
181  os << _value.ego_vehicle_dynamics;
182  os << ",";
183  os << "object_dynamics:";
184  os << _value.object_dynamics;
185  os << ")";
186  return os;
187 }
188 
189 } // namespace map
190 } // namespace rss
191 } // namespace ad
192 
193 namespace std {
197 inline std::string to_string(::ad::rss::map::RssConstellationConfiguration const &value)
198 {
199  stringstream sstream;
200  sstream << value;
201  return sstream.str();
202 }
203 } // namespace std
204 
208 template <> struct fmt::formatter<::ad::rss::map::RssConstellationConfiguration> : formatter<string_view>
209 {
210  template <typename FormatContext>
211  auto format(::ad::rss::map::RssConstellationConfiguration const &value, FormatContext &ctx)
212  {
213  return formatter<string_view>::format(std::to_string(value), ctx);
214  }
215 };
216 
217 #endif // GEN_GUARD_AD_RSS_MAP_RSSCONSTELLATIONCONFIGURATION
std::string to_string(::ad::rss::map::RouteAccelerations const &value)
overload of the std::to_string for RouteAccelerations
Definition: RouteAccelerations.hpp:229
RssConstellationCreationMode
DataType RssConstellationCreationMode.
Definition: RssConstellationCreationMode.hpp:44
RssRestrictSpeedLimitMode
DataType RssRestrictSpeedLimitMode.
Definition: RssRestrictSpeedLimitMode.hpp:44
std::ostream & operator<<(std::ostream &os, RouteAccelerations const &_value)
standard ostream operator
Definition: RouteAccelerations.hpp:194
namespace ad
Definition: RouteAccelerations.hpp:33
DataType RssConstellationConfiguration.
Definition: RssConstellationConfiguration.hpp:43
::ad::rss::map::RssRestrictSpeedLimitMode restrict_speed_limit_mode
Definition: RssConstellationConfiguration.hpp:127
~RssConstellationConfiguration()=default
standard destructor
RssConstellationConfiguration & operator=(const RssConstellationConfiguration &other)=default
standard assignment operator
::ad::rss::world::RssDynamics ego_vehicle_dynamics
Definition: RssConstellationConfiguration.hpp:132
std::shared_ptr< RssConstellationConfiguration > Ptr
Smart pointer on RssConstellationConfiguration.
Definition: RssConstellationConfiguration.hpp:47
std::shared_ptr< RssConstellationConfiguration const > ConstPtr
Smart pointer on constant RssConstellationConfiguration.
Definition: RssConstellationConfiguration.hpp:52
::ad::rss::world::RssDynamics object_dynamics
Definition: RssConstellationConfiguration.hpp:137
RssConstellationConfiguration & operator=(RssConstellationConfiguration &&other)=default
standard move operator
RssConstellationConfiguration()=default
standard constructor
bool operator==(const RssConstellationConfiguration &other) const
standard comparison operator
Definition: RssConstellationConfiguration.hpp:99
RssConstellationConfiguration(RssConstellationConfiguration &&other)=default
standard move constructor
::ad::rss::map::RssConstellationCreationMode constellation_creation_mode
Definition: RssConstellationConfiguration.hpp:121
bool operator!=(const RssConstellationConfiguration &other) const
standard comparison operator
Definition: RssConstellationConfiguration.hpp:113
RssConstellationConfiguration(const RssConstellationConfiguration &other)=default
standard copy constructor