ad_rss
Namespaces | Macros | Enumerations | Functions
RssStateEvaluator.hpp File Reference
#include <iostream>
#include <memory>
#include <string>
Include dependency graph for RssStateEvaluator.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ad
 namespace ad
 
 ad::rss
 namespace rss
 
 ad::rss::state
 namespace state
 

Macros

#define GEN_GUARD_AD_RSS_STATE_RSSSTATEEVALUATOR
 protect the definition of functions from duplicates by typedef usage within other data types
 

Enumerations

enum  ad::rss::state::RssStateEvaluator : int32_t {
  ad::rss::state::RssStateEvaluator::None = 0, ad::rss::state::RssStateEvaluator::LongitudinalDistanceOppositeDirectionEgoCorrectLane = 1, ad::rss::state::RssStateEvaluator::LongitudinalDistanceOppositeDirection = 2, ad::rss::state::RssStateEvaluator::LongitudinalDistanceSameDirectionEgoFront = 3,
  ad::rss::state::RssStateEvaluator::LongitudinalDistanceSameDirectionOtherInFront = 4, ad::rss::state::RssStateEvaluator::LateralDistance = 5, ad::rss::state::RssStateEvaluator::IntersectionOtherPriorityEgoAbleToStop = 6, ad::rss::state::RssStateEvaluator::IntersectionEgoPriorityOtherAbleToStop = 7,
  ad::rss::state::RssStateEvaluator::IntersectionEgoInFront = 8, ad::rss::state::RssStateEvaluator::IntersectionOtherInFront = 9, ad::rss::state::RssStateEvaluator::IntersectionOverlap = 10
}
 DataType RssStateEvaluator. More...
 

Functions

std::string toString (::ad::rss::state::RssStateEvaluator const e)
 Conversion of ad::rss::state::RssStateEvaluator to std::string helper.
 
template<typename EnumType >
EnumType fromString (std::string const &str)
 Conversion from std::string to enum type T helper. More...
 
template<>
::ad::rss::state::RssStateEvaluator fromString (std::string const &str)
 Conversion from std::string to enum type T helper. More...
 
std::ostream & ad::rss::state::operator<< (std::ostream &os, RssStateEvaluator const &value)
 standard ostream operator More...
 
std::string std::to_string (::ad::rss::state::RssStateEvaluator const &value)
 overload of the std::to_string for RssStateEvaluator
 

Detailed Description

Generated file

Generator Version : 11.0.0-1997

Function Documentation

◆ fromString() [1/2]

template<typename EnumType >
EnumType fromString ( std::string const &  str)

Conversion from std::string to enum type T helper.

Parameters
[in]str- a fully qualified string name of enum class type
Returns
T enum value
Exceptions
std::out_of_rangeexception if the given string does not match any enum type

Example usage:

auto value = fromString<SomeEnumType>("SomeEnumType::eValue");
assert(value == SomeEnumType::eValue);
// Or:
auto value = fromString<SomeEnumType>("eValue");
assert(value == SomeEnumType::eValue);

◆ fromString() [2/2]

template<>
::ad::rss::state::RssStateEvaluator fromString ( std::string const &  str)

Conversion from std::string to enum type T helper.

Parameters
[in]str- a fully qualified string name of enum class type
Returns
T enum value
Exceptions
std::out_of_rangeexception if the given string does not match any enum type

Example usage:

auto value = fromString<SomeEnumType>("SomeEnumType::eValue");
assert(value == SomeEnumType::eValue);
// Or:
auto value = fromString<SomeEnumType>("eValue");
assert(value == SomeEnumType::eValue);