ad_rss
generated
include
ad
rss
state
LateralRssState.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/rss/state/LateralResponse.hpp
"
24
#include "
ad/rss/state/RssStateInformation.hpp
"
25
#include "
ad/rss/world/LateralRssAccelerationValues.hpp
"
29
namespace
ad
{
33
namespace
rss {
37
namespace
state {
38
44
struct
LateralRssState
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
(
is_safe
== other.
is_safe
) && (
response
== other.
response
) && (
alpha_lat
== other.
alpha_lat
)
104
&& (
rss_state_information
== other.
rss_state_information
);
105
}
106
114
bool
operator!=
(
const
LateralRssState
&other)
const
115
{
116
return
!
operator==
(other);
117
}
118
122
bool
is_safe
{
false
};
123
127
::ad::rss::state::LateralResponse
response
;
128
132
::ad::rss::world::LateralRssAccelerationValues
alpha_lat
;
133
137
::ad::rss::state::RssStateInformation
rss_state_information
;
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
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 <<
"is_safe:"
;
175
os << _value.
is_safe
;
176
os <<
","
;
177
os <<
"response:"
;
178
os << _value.
response
;
179
os <<
","
;
180
os <<
"alpha_lat:"
;
181
os << _value.
alpha_lat
;
182
os <<
","
;
183
os <<
"rss_state_information:"
;
184
os << _value.
rss_state_information
;
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
208
template
<>
struct
fmt::formatter<::
ad::rss::state::LateralRssState
> : formatter<string_view>
209
{
210
template
<
typename
FormatContext>
auto
format(::
ad::rss::state::LateralRssState
const
&value, FormatContext &ctx)
211
{
212
return
formatter<string_view>::format(std::to_string(value), ctx);
213
}
214
};
215
216
#endif
// GEN_GUARD_AD_RSS_STATE_LATERALRSSSTATE
std::to_string
std::string to_string(::ad::rss::core::LateralRelativePosition const &value)
overload of the std::to_string for LateralRelativePosition
Definition:
LateralRelativePosition.hpp:162
LateralResponse.hpp
LateralRssAccelerationValues.hpp
RssStateInformation.hpp
ad::rss::state::LateralResponse
LateralResponse
DataType LateralResponse.
Definition:
LateralResponse.hpp:46
ad::rss::state::operator<<
std::ostream & operator<<(std::ostream &os, AccelerationRestriction const &_value)
standard ostream operator
Definition:
AccelerationRestriction.hpp:164
ad
namespace ad
Definition:
LateralRelativePosition.hpp:28
ad::rss::state::LateralRssState
DataType LateralRssState.
Definition:
LateralRssState.hpp:45
ad::rss::state::LateralRssState::operator==
bool operator==(const LateralRssState &other) const
standard comparison operator
Definition:
LateralRssState.hpp:101
ad::rss::state::LateralRssState::response
::ad::rss::state::LateralResponse response
Definition:
LateralRssState.hpp:127
ad::rss::state::LateralRssState::ConstPtr
std::shared_ptr< LateralRssState const > ConstPtr
Smart pointer on constant LateralRssState.
Definition:
LateralRssState.hpp:54
ad::rss::state::LateralRssState::alpha_lat
::ad::rss::world::LateralRssAccelerationValues alpha_lat
Definition:
LateralRssState.hpp:132
ad::rss::state::LateralRssState::LateralRssState
LateralRssState(const LateralRssState &other)=default
standard copy constructor
ad::rss::state::LateralRssState::Ptr
std::shared_ptr< LateralRssState > Ptr
Smart pointer on LateralRssState.
Definition:
LateralRssState.hpp:49
ad::rss::state::LateralRssState::operator!=
bool operator!=(const LateralRssState &other) const
standard comparison operator
Definition:
LateralRssState.hpp:114
ad::rss::state::LateralRssState::operator=
LateralRssState & operator=(const LateralRssState &other)=default
standard assignment operator
ad::rss::state::LateralRssState::LateralRssState
LateralRssState(LateralRssState &&other)=default
standard move constructor
ad::rss::state::LateralRssState::LateralRssState
LateralRssState()=default
standard constructor
ad::rss::state::LateralRssState::operator=
LateralRssState & operator=(LateralRssState &&other)=default
standard move operator
ad::rss::state::LateralRssState::rss_state_information
::ad::rss::state::RssStateInformation rss_state_information
Definition:
LateralRssState.hpp:137
ad::rss::state::LateralRssState::~LateralRssState
~LateralRssState()=default
standard destructor
ad::rss::state::LateralRssState::is_safe
bool is_safe
Definition:
LateralRssState.hpp:122
ad::rss::state::RssStateInformation
DataType RssStateInformation.
Definition:
RssStateInformation.hpp:45
ad::rss::world::LateralRssAccelerationValues
DataType LateralRssAccelerationValues.
Definition:
LateralRssAccelerationValues.hpp:44
Generated by
1.9.1