ad_rss
LateralRssState.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>
29 namespace ad {
33 namespace rss {
37 namespace state {
38 
45 {
49  typedef std::shared_ptr<LateralRssState> Ptr;
50 
54  typedef std::shared_ptr<LateralRssState const> ConstPtr;
55 
59  LateralRssState() = default;
60 
64  ~LateralRssState() = default;
65 
69  LateralRssState(const LateralRssState &other) = default;
70 
74  LateralRssState(LateralRssState &&other) = default;
75 
83  LateralRssState &operator=(const LateralRssState &other) = default;
84 
92  LateralRssState &operator=(LateralRssState &&other) = default;
93 
101  bool operator==(const LateralRssState &other) const
102  {
103  return (isSafe == other.isSafe) && (response == other.response) && (alphaLat == other.alphaLat)
105  }
106 
114  bool operator!=(const LateralRssState &other) const
115  {
116  return !operator==(other);
117  }
118 
122  bool isSafe{false};
123 
128 
133 
138 };
139 
140 } // namespace state
141 } // namespace rss
142 } // namespace ad
143 
147 #ifndef GEN_GUARD_AD_RSS_STATE_LATERALRSSSTATE
148 #define GEN_GUARD_AD_RSS_STATE_LATERALRSSSTATE
149 
152 namespace ad {
156 namespace rss {
160 namespace state {
161 
171 inline std::ostream &operator<<(std::ostream &os, LateralRssState const &_value)
172 {
173  os << "LateralRssState(";
174  os << "isSafe:";
175  os << _value.isSafe;
176  os << ",";
177  os << "response:";
178  os << _value.response;
179  os << ",";
180  os << "alphaLat:";
181  os << _value.alphaLat;
182  os << ",";
183  os << "rssStateInformation:";
184  os << _value.rssStateInformation;
185  os << ")";
186  return os;
187 }
188 
189 } // namespace state
190 } // namespace rss
191 } // namespace ad
192 
193 namespace std {
197 inline std::string to_string(::ad::rss::state::LateralRssState const &value)
198 {
199  stringstream sstream;
200  sstream << value;
201  return sstream.str();
202 }
203 } // namespace std
204 #endif // GEN_GUARD_AD_RSS_STATE_LATERALRSSSTATE
LateralResponse.hpp
ad
namespace ad
Definition: LateralRelativePosition.hpp:26
ad::rss::state::LateralRssState::alphaLat
::ad::rss::world::LateralRssAccelerationValues alphaLat
Definition: LateralRssState.hpp:132
ad::rss::state::LateralRssState::operator=
LateralRssState & operator=(const LateralRssState &other)=default
standard assignment operator
RssStateInformation.hpp
ad::rss::state::LateralRssState::isSafe
bool isSafe
Definition: LateralRssState.hpp:122
ad::rss::state::LateralRssState::Ptr
std::shared_ptr< LateralRssState > Ptr
Smart pointer on LateralRssState.
Definition: LateralRssState.hpp:49
ad::rss::state::LateralResponse
LateralResponse
DataType LateralResponse.
Definition: LateralResponse.hpp:43
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::LateralRssState::response
::ad::rss::state::LateralResponse response
Definition: LateralRssState.hpp:127
ad::rss::world::LateralRssAccelerationValues
DataType LateralRssAccelerationValues.
Definition: LateralRssAccelerationValues.hpp:43
ad::rss::state::LateralRssState::operator==
bool operator==(const LateralRssState &other) const
standard comparison operator
Definition: LateralRssState.hpp:101
ad::rss::state::operator<<
std::ostream & operator<<(std::ostream &os, AccelerationRestriction const &_value)
standard ostream operator
Definition: AccelerationRestriction.hpp:164
ad::rss::state::LateralRssState::~LateralRssState
~LateralRssState()=default
standard destructor
ad::rss::state::LateralRssState
DataType LateralRssState.
Definition: LateralRssState.hpp:44
ad::rss::state::LateralRssState::rssStateInformation
::ad::rss::state::RssStateInformation rssStateInformation
Definition: LateralRssState.hpp:137
ad::rss::state::LateralRssState::LateralRssState
LateralRssState()=default
standard constructor
ad::rss::state::LateralRssState::ConstPtr
std::shared_ptr< LateralRssState const > ConstPtr
Smart pointer on constant LateralRssState.
Definition: LateralRssState.hpp:54
ad::rss::state::LateralRssState::operator!=
bool operator!=(const LateralRssState &other) const
standard comparison operator
Definition: LateralRssState.hpp:114
ad::rss::state::RssStateInformation
DataType RssStateInformation.
Definition: RssStateInformation.hpp:44
LateralRssAccelerationValues.hpp