ad_rss
generated
include
ad
rss
state
RssStateEvaluator.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 <string>
26
namespace
ad
{
30
namespace
rss {
34
namespace
state {
35
41
enum class
RssStateEvaluator
: int32_t
42
{
46
None
= 0,
47
51
LongitudinalDistanceOppositeDirectionEgoCorrectLane
= 1,
52
56
LongitudinalDistanceOppositeDirection
= 2,
57
61
LongitudinalDistanceSameDirectionEgoFront
= 3,
62
66
LongitudinalDistanceSameDirectionOtherInFront
= 4,
67
71
LateralDistance
= 5,
72
76
IntersectionOtherPriorityEgoAbleToStop
= 6,
77
81
IntersectionEgoPriorityOtherAbleToStop
= 7,
82
86
IntersectionEgoInFront
= 8,
87
91
IntersectionOtherInFront
= 9,
92
96
IntersectionOverlap
= 10
97
};
98
99
}
// namespace state
100
}
// namespace rss
101
}
// namespace ad
105
std::string
toString
(::
ad::rss::state::RssStateEvaluator
const
e);
106
125
template
<
typename
EnumType> EnumType
fromString
(std::string
const
&str);
126
145
template <>::ad::rss::state::RssStateEvaluator
fromString
(std::string
const
&str);
146
150
#ifndef GEN_GUARD_AD_RSS_STATE_RSSSTATEEVALUATOR
151
#define GEN_GUARD_AD_RSS_STATE_RSSSTATEEVALUATOR
152
155
namespace
ad
{
159
namespace
rss {
163
namespace
state {
164
174
inline
std::ostream &
operator<<
(std::ostream &os,
RssStateEvaluator
const
&value)
175
{
176
return
os <<
toString
(value);
177
}
178
179
}
// namespace state
180
}
// namespace rss
181
}
// namespace ad
182
183
namespace
std {
187
inline
std::string
to_string
(::
ad::rss::state::RssStateEvaluator
const
&value)
188
{
189
return ::toString
(value);
190
}
191
}
// namespace std
192
#endif // GEN_GUARD_AD_RSS_STATE_RSSSTATEEVALUATOR
ad
namespace ad
Definition:
LateralRelativePosition.hpp:26
ad::rss::state::RssStateEvaluator::LongitudinalDistanceOppositeDirectionEgoCorrectLane
@ LongitudinalDistanceOppositeDirectionEgoCorrectLane
ad::rss::state::RssStateEvaluator::IntersectionEgoInFront
@ IntersectionEgoInFront
ad::rss::state::RssStateEvaluator::LongitudinalDistanceSameDirectionEgoFront
@ LongitudinalDistanceSameDirectionEgoFront
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
fromString
EnumType fromString(std::string const &str)
Conversion from std::string to enum type T helper.
ad::rss::state::RssStateEvaluator::None
@ None
ad::rss::state::RssStateEvaluator::IntersectionOverlap
@ IntersectionOverlap
ad::rss::state::RssStateEvaluator::LateralDistance
@ LateralDistance
toString
std::string toString(::ad::rss::state::RssStateEvaluator const e)
Conversion of ad::rss::state::RssStateEvaluator to std::string helper.
ad::rss::state::RssStateEvaluator
RssStateEvaluator
DataType RssStateEvaluator.
Definition:
RssStateEvaluator.hpp:41
ad::rss::state::RssStateEvaluator::IntersectionOtherPriorityEgoAbleToStop
@ IntersectionOtherPriorityEgoAbleToStop
ad::rss::state::RssStateEvaluator::IntersectionEgoPriorityOtherAbleToStop
@ IntersectionEgoPriorityOtherAbleToStop
ad::rss::state::operator<<
std::ostream & operator<<(std::ostream &os, AccelerationRestriction const &_value)
standard ostream operator
Definition:
AccelerationRestriction.hpp:164
ad::rss::state::RssStateEvaluator::LongitudinalDistanceOppositeDirection
@ LongitudinalDistanceOppositeDirection
ad::rss::state::RssStateEvaluator::IntersectionOtherInFront
@ IntersectionOtherInFront
ad::rss::state::RssStateEvaluator::LongitudinalDistanceSameDirectionOtherInFront
@ LongitudinalDistanceSameDirectionOtherInFront
Generated by
1.8.17