ad_rss
RssStateSnapshot.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 <limits>
22 #include <memory>
23 #include <sstream>
31 namespace ad {
35 namespace rss {
39 namespace state {
40 
47 {
51  typedef std::shared_ptr<RssStateSnapshot> Ptr;
52 
56  typedef std::shared_ptr<RssStateSnapshot const> ConstPtr;
57 
61  RssStateSnapshot() = default;
62 
66  ~RssStateSnapshot() = default;
67 
71  RssStateSnapshot(const RssStateSnapshot &other) = default;
72 
76  RssStateSnapshot(RssStateSnapshot &&other) = default;
77 
85  RssStateSnapshot &operator=(const RssStateSnapshot &other) = default;
86 
94  RssStateSnapshot &operator=(RssStateSnapshot &&other) = default;
95 
103  bool operator==(const RssStateSnapshot &other) const
104  {
108  }
109 
117  bool operator!=(const RssStateSnapshot &other) const
118  {
119  return !operator==(other);
120  }
121 
128 
136 
141 
146 };
147 
148 } // namespace state
149 } // namespace rss
150 } // namespace ad
151 
155 #ifndef GEN_GUARD_AD_RSS_STATE_RSSSTATESNAPSHOT
156 #define GEN_GUARD_AD_RSS_STATE_RSSSTATESNAPSHOT
157 
160 namespace ad {
164 namespace rss {
168 namespace state {
169 
179 inline std::ostream &operator<<(std::ostream &os, RssStateSnapshot const &_value)
180 {
181  os << "RssStateSnapshot(";
182  os << "timeIndex:";
183  os << _value.timeIndex;
184  os << ",";
185  os << "defaultEgoVehicleRssDynamics:";
186  os << _value.defaultEgoVehicleRssDynamics;
187  os << ",";
188  os << "individualResponses:";
189  os << _value.individualResponses;
190  os << ",";
191  os << "unstructuredSceneEgoInformation:";
192  os << _value.unstructuredSceneEgoInformation;
193  os << ")";
194  return os;
195 }
196 
197 } // namespace state
198 } // namespace rss
199 } // namespace ad
200 
201 namespace std {
205 inline std::string to_string(::ad::rss::state::RssStateSnapshot const &value)
206 {
207  stringstream sstream;
208  sstream << value;
209  return sstream.str();
210 }
211 } // namespace std
212 #endif // GEN_GUARD_AD_RSS_STATE_RSSSTATESNAPSHOT
uint64_t TimeIndex
DataType TimeIndex.
Definition: TimeIndex.hpp:39
DataType UnstructuredSceneStateInformation.
Definition: UnstructuredSceneStateInformation.hpp:40
std::string to_string(::ad::rss::situation::LateralRelativePosition const &value)
overload of the std::to_string for LateralRelativePosition
Definition: LateralRelativePosition.hpp:160
STL namespace.
std::vector<::ad::rss::state::RssState > RssStateVector
DataType RssStateVector.
Definition: RssStateVector.hpp:42
::ad::rss::world::TimeIndex timeIndex
Definition: RssStateSnapshot.hpp:127
RssStateSnapshot & operator=(const RssStateSnapshot &other)=default
standard assignment operator
bool operator!=(const RssStateSnapshot &other) const
standard comparison operator
Definition: RssStateSnapshot.hpp:117
bool operator==(const RssStateSnapshot &other) const
standard comparison operator
Definition: RssStateSnapshot.hpp:103
::ad::rss::state::UnstructuredSceneStateInformation unstructuredSceneEgoInformation
Definition: RssStateSnapshot.hpp:145
DataType RssDynamics.
Definition: RssDynamics.hpp:50
std::ostream & operator<<(std::ostream &os, AccelerationRestriction const &_value)
standard ostream operator
Definition: AccelerationRestriction.hpp:164
~RssStateSnapshot()=default
standard destructor
::ad::rss::state::RssStateVector individualResponses
Definition: RssStateSnapshot.hpp:140
std::shared_ptr< RssStateSnapshot const > ConstPtr
Smart pointer on constant RssStateSnapshot.
Definition: RssStateSnapshot.hpp:56
namespace ad
Definition: LateralRelativePosition.hpp:26
::ad::rss::world::RssDynamics defaultEgoVehicleRssDynamics
Definition: RssStateSnapshot.hpp:135
RssStateSnapshot()=default
standard constructor
DataType RssStateSnapshot.
Definition: RssStateSnapshot.hpp:46
std::shared_ptr< RssStateSnapshot > Ptr
Smart pointer on RssStateSnapshot.
Definition: RssStateSnapshot.hpp:51