Branch data Line data Source code
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 : : 11 : : /** 12 : : * Generated file 13 : : * @file 14 : : * 15 : : * Generator Version : 11.0.0-2046 16 : : */ 17 : : 18 : : #pragma once 19 : : 20 : : #include <cmath> 21 : : #include <limits> 22 : : #include "ad/rss/map/RssConstellationConfiguration.hpp" 23 : : #include "ad/rss/map/RssConstellationCreationModeValidInputRange.hpp" 24 : : #include "ad/rss/map/RssRestrictSpeedLimitModeValidInputRange.hpp" 25 : : #include "ad/rss/world/RssDynamicsValidInputRange.hpp" 26 : : #include "spdlog/fmt/ostr.h" 27 : : #include "spdlog/spdlog.h" 28 : : 29 : : /*! 30 : : * \brief check if the given RssConstellationConfiguration is within valid input range 31 : : * 32 : : * \param[in] input the RssConstellationConfiguration as an input value 33 : : * \param[in] logErrors enables error logging 34 : : * 35 : : * \returns \c true if RssConstellationConfiguration is considered to be within the specified input range 36 : : * 37 : : * \note the specified input range is defined by the ranges of all members 38 : : */ 39 : 9 : inline bool withinValidInputRange(::ad::rss::map::RssConstellationConfiguration const &input, 40 : : bool const logErrors = true) 41 : : { 42 : : // check for generic member input ranges 43 : 9 : bool inValidInputRange = true; 44 : 9 : inValidInputRange = withinValidInputRange(input.constellation_creation_mode, logErrors) 45 [ + + ]: 7 : && withinValidInputRange(input.restrict_speed_limit_mode, logErrors) 46 [ + + ]: 5 : && withinValidInputRange(input.ego_vehicle_dynamics, logErrors) 47 [ + + + + ]: 16 : && withinValidInputRange(input.object_dynamics, logErrors); 48 [ + + + - ]: 9 : if (!inValidInputRange && logErrors) 49 : : { 50 [ + - ]: 8 : spdlog::error("withinValidInputRange(::ad::rss::map::RssConstellationConfiguration)>> {} has invalid member", 51 : : input); // LCOV_EXCL_BR_LINE 52 : : } 53 : : 54 : 9 : return inValidInputRange; 55 : : }