ad_rss
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 
52 
57 
62 
67 
71  LateralDistance = 5,
72 
77 
82 
87 
92 
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 
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