ad_rss
UnstructuredSceneRssState.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 <memory>
22 #include <sstream>
30 namespace ad {
34 namespace rss {
38 namespace state {
39 
44 {
48  typedef std::shared_ptr<UnstructuredSceneRssState> Ptr;
49 
53  typedef std::shared_ptr<UnstructuredSceneRssState const> ConstPtr;
54 
58  UnstructuredSceneRssState() = default;
59 
63  ~UnstructuredSceneRssState() = default;
64 
69 
74 
83 
92 
100  bool operator==(const UnstructuredSceneRssState &other) const
101  {
102  return (isSafe == other.isSafe) && (response == other.response) && (headingRange == other.headingRange)
103  && (rssStateInformation == other.rssStateInformation) && (alphaLon == other.alphaLon);
104  }
105 
113  bool operator!=(const UnstructuredSceneRssState &other) const
114  {
115  return !operator==(other);
116  }
117 
121  bool isSafe;
122 
127 
132 
137 
142 };
143 
144 } // namespace state
145 } // namespace rss
146 } // namespace ad
147 
151 #ifndef GEN_GUARD_AD_RSS_STATE_UNSTRUCTUREDSCENERSSSTATE
152 #define GEN_GUARD_AD_RSS_STATE_UNSTRUCTUREDSCENERSSSTATE
153 
156 namespace ad {
160 namespace rss {
164 namespace state {
165 
175 inline std::ostream &operator<<(std::ostream &os, UnstructuredSceneRssState const &_value)
176 {
177  os << "UnstructuredSceneRssState(";
178  os << "isSafe:";
179  os << _value.isSafe;
180  os << ",";
181  os << "response:";
182  os << _value.response;
183  os << ",";
184  os << "headingRange:";
185  os << _value.headingRange;
186  os << ",";
187  os << "rssStateInformation:";
188  os << _value.rssStateInformation;
189  os << ",";
190  os << "alphaLon:";
191  os << _value.alphaLon;
192  os << ")";
193  return os;
194 }
195 
196 } // namespace state
197 } // namespace rss
198 } // namespace ad
199 
200 namespace std {
204 inline std::string to_string(::ad::rss::state::UnstructuredSceneRssState const &value)
205 {
206  stringstream sstream;
207  sstream << value;
208  return sstream.str();
209 }
210 } // namespace std
211 #endif // GEN_GUARD_AD_RSS_STATE_UNSTRUCTUREDSCENERSSSTATE
ad
namespace ad
Definition: LateralRelativePosition.hpp:26
ad::rss::state::UnstructuredSceneRssState::response
::ad::rss::state::UnstructuredSceneResponse response
Definition: UnstructuredSceneRssState.hpp:126
ad::rss::state::UnstructuredSceneRssState::UnstructuredSceneRssState
UnstructuredSceneRssState()=default
standard constructor
ad::rss::state::UnstructuredSceneRssState::headingRange
::ad::rss::state::HeadingRange headingRange
Definition: UnstructuredSceneRssState.hpp:131
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
ad::rss::state::UnstructuredSceneRssState::Ptr
std::shared_ptr< UnstructuredSceneRssState > Ptr
Smart pointer on UnstructuredSceneRssState.
Definition: UnstructuredSceneRssState.hpp:48
ad::rss::state::UnstructuredSceneRssState::isSafe
bool isSafe
Definition: UnstructuredSceneRssState.hpp:121
ad::rss::state::UnstructuredSceneRssState::operator!=
bool operator!=(const UnstructuredSceneRssState &other) const
standard comparison operator
Definition: UnstructuredSceneRssState.hpp:113
LongitudinalRssAccelerationValues.hpp
UnstructuredSceneStateInformation.hpp
ad::rss::state::UnstructuredSceneStateInformation
DataType UnstructuredSceneStateInformation.
Definition: UnstructuredSceneStateInformation.hpp:40
ad::rss::world::LongitudinalRssAccelerationValues
DataType LongitudinalRssAccelerationValues.
Definition: LongitudinalRssAccelerationValues.hpp:43
ad::rss::state::UnstructuredSceneRssState::~UnstructuredSceneRssState
~UnstructuredSceneRssState()=default
standard destructor
ad::rss::state::UnstructuredSceneResponse
UnstructuredSceneResponse
DataType UnstructuredSceneResponse.
Definition: UnstructuredSceneResponse.hpp:39
HeadingRange.hpp
ad::rss::state::UnstructuredSceneRssState::operator==
bool operator==(const UnstructuredSceneRssState &other) const
standard comparison operator
Definition: UnstructuredSceneRssState.hpp:100
ad::rss::state::operator<<
std::ostream & operator<<(std::ostream &os, AccelerationRestriction const &_value)
standard ostream operator
Definition: AccelerationRestriction.hpp:164
ad::rss::state::UnstructuredSceneRssState::alphaLon
::ad::rss::world::LongitudinalRssAccelerationValues alphaLon
Definition: UnstructuredSceneRssState.hpp:141
ad::rss::state::UnstructuredSceneRssState
DataType UnstructuredSceneRssState.
Definition: UnstructuredSceneRssState.hpp:43
ad::rss::state::UnstructuredSceneRssState::rssStateInformation
::ad::rss::state::UnstructuredSceneStateInformation rssStateInformation
Definition: UnstructuredSceneRssState.hpp:136
ad::rss::state::UnstructuredSceneRssState::ConstPtr
std::shared_ptr< UnstructuredSceneRssState const > ConstPtr
Smart pointer on constant UnstructuredSceneRssState.
Definition: UnstructuredSceneRssState.hpp:53
ad::rss::state::UnstructuredSceneRssState::operator=
UnstructuredSceneRssState & operator=(const UnstructuredSceneRssState &other)=default
standard assignment operator
UnstructuredSceneResponse.hpp
ad::rss::state::HeadingRange
DataType HeadingRange.
Definition: HeadingRange.hpp:43