Branch data Line data Source code
1 : : /* 2 : : * ----------------- BEGIN LICENSE BLOCK --------------------------------- 3 : : * 4 : : * Copyright (C) 2018-2020 Intel Corporation 5 : : * 6 : : * SPDX-License-Identifier: MIT 7 : : * 8 : : * ----------------- END LICENSE BLOCK ----------------------------------- 9 : : */ 10 : : 11 : : /** 12 : : * Generated file 13 : : * @file 14 : : * 15 : : * Generator Version : 11.0.0-1997 16 : : */ 17 : : 18 : : #pragma once 19 : : 20 : : #include <cmath> 21 : : #include <limits> 22 : : #include "ad/map/match/ENUObjectPosition.hpp" 23 : : #include "ad/map/point/ENUHeadingValidInputRange.hpp" 24 : : #include "ad/map/point/ENUPointValidInputRange.hpp" 25 : : #include "ad/map/point/GeoPointValidInputRange.hpp" 26 : : #include "ad/physics/Dimension3DValidInputRange.hpp" 27 : : #include "spdlog/fmt/ostr.h" 28 : : #include "spdlog/spdlog.h" 29 : : 30 : : /*! 31 : : * \brief check if the given ENUObjectPosition is within valid input range 32 : : * 33 : : * \param[in] input the ENUObjectPosition as an input value 34 : : * \param[in] logErrors enables error logging 35 : : * 36 : : * \returns \c true if ENUObjectPosition is considered to be within the specified input range 37 : : * 38 : : * \note the specified input range is defined by the ranges of all members 39 : : */ 40 : 19 : inline bool withinValidInputRange(::ad::map::match::ENUObjectPosition const &input, bool const logErrors = true) 41 : : { 42 : : // check for generic member input ranges 43 : 19 : bool inValidInputRange = true; 44 : 19 : inValidInputRange = withinValidInputRange(input.centerPoint, logErrors) 45 [ + + + + ]: 12 : && withinValidInputRange(input.heading, logErrors) && withinValidInputRange(input.enuReferencePoint, logErrors) 46 [ + + + + ]: 31 : && withinValidInputRange(input.dimension, logErrors); 47 [ + + + - ]: 19 : if (!inValidInputRange && logErrors) 48 : : { 49 [ + - ]: 13 : spdlog::error("withinValidInputRange(::ad::map::match::ENUObjectPosition)>> {} has invalid member", 50 : : input); // LCOV_EXCL_BR_LINE 51 : : } 52 : : 53 : 19 : return inValidInputRange; 54 : : }