LCOV - code coverage report
Current view: top level - generated/include/ad/rss/state - UnstructuredSceneRssState.hpp (source / functions) Hit Total Coverage
Test: ad_rss Lines: 32 32 100.0 %
Date: 2024-05-08 21:22:00 Functions: 10 10 100.0 %
Branches: 14 18 77.8 %

           Branch data     Line data    Source code
       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                 :            : 
      11                 :            : /**
      12                 :            :  * Generated file
      13                 :            :  * @file
      14                 :            :  *
      15                 :            :  * Generator Version : 11.0.0-1997
      16                 :            :  */
      17                 :            : 
      18                 :            : #pragma once
      19                 :            : 
      20                 :            : #include <iostream>
      21                 :            : #include <memory>
      22                 :            : #include <sstream>
      23                 :            : #include "ad/rss/state/HeadingRange.hpp"
      24                 :            : #include "ad/rss/state/UnstructuredSceneResponse.hpp"
      25                 :            : #include "ad/rss/state/UnstructuredSceneStateInformation.hpp"
      26                 :            : #include "ad/rss/world/LongitudinalRssAccelerationValues.hpp"
      27                 :            : /*!
      28                 :            :  * @brief namespace ad
      29                 :            :  */
      30                 :            : namespace ad {
      31                 :            : /*!
      32                 :            :  * @brief namespace rss
      33                 :            :  */
      34                 :            : namespace rss {
      35                 :            : /*!
      36                 :            :  * @brief namespace state
      37                 :            :  */
      38                 :            : namespace state {
      39                 :            : 
      40                 :            : /*!
      41                 :            :  * \brief DataType UnstructuredSceneRssState
      42                 :            :  */
      43                 :        215 : struct UnstructuredSceneRssState
      44                 :            : {
      45                 :            :   /*!
      46                 :            :    * \brief Smart pointer on UnstructuredSceneRssState
      47                 :            :    */
      48                 :            :   typedef std::shared_ptr<UnstructuredSceneRssState> Ptr;
      49                 :            : 
      50                 :            :   /*!
      51                 :            :    * \brief Smart pointer on constant UnstructuredSceneRssState
      52                 :            :    */
      53                 :            :   typedef std::shared_ptr<UnstructuredSceneRssState const> ConstPtr;
      54                 :            : 
      55                 :            :   /*!
      56                 :            :    * \brief standard constructor
      57                 :            :    */
      58         [ +  - ]:      67441 :   UnstructuredSceneRssState() = default;
      59                 :            : 
      60                 :            :   /*!
      61                 :            :    * \brief standard destructor
      62                 :            :    */
      63                 :     194097 :   ~UnstructuredSceneRssState() = default;
      64                 :            : 
      65                 :            :   /*!
      66                 :            :    * \brief standard copy constructor
      67                 :            :    */
      68                 :      58167 :   UnstructuredSceneRssState(const UnstructuredSceneRssState &other) = default;
      69                 :            : 
      70                 :            :   /*!
      71                 :            :    * \brief standard move constructor
      72                 :            :    */
      73                 :      68491 :   UnstructuredSceneRssState(UnstructuredSceneRssState &&other) = default;
      74                 :            : 
      75                 :            :   /**
      76                 :            :    * \brief standard assignment operator
      77                 :            :    *
      78                 :            :    * \param[in] other Other UnstructuredSceneRssState
      79                 :            :    *
      80                 :            :    * \returns Reference to this UnstructuredSceneRssState.
      81                 :            :    */
      82                 :            :   UnstructuredSceneRssState &operator=(const UnstructuredSceneRssState &other) = default;
      83                 :            : 
      84                 :            :   /**
      85                 :            :    * \brief standard move operator
      86                 :            :    *
      87                 :            :    * \param[in] other Other UnstructuredSceneRssState
      88                 :            :    *
      89                 :            :    * \returns Reference to this UnstructuredSceneRssState.
      90                 :            :    */
      91                 :            :   UnstructuredSceneRssState &operator=(UnstructuredSceneRssState &&other) = default;
      92                 :            : 
      93                 :            :   /**
      94                 :            :    * \brief standard comparison operator
      95                 :            :    *
      96                 :            :    * \param[in] other Other UnstructuredSceneRssState
      97                 :            :    *
      98                 :            :    * \returns \c true if both UnstructuredSceneRssState are equal
      99                 :            :    */
     100                 :         34 :   bool operator==(const UnstructuredSceneRssState &other) const
     101                 :            :   {
     102   [ +  +  +  + ]:         30 :     return (isSafe == other.isSafe) && (response == other.response) && (headingRange == other.headingRange)
     103   [ +  +  +  +  :         64 :       && (rssStateInformation == other.rssStateInformation) && (alphaLon == other.alphaLon);
                   +  + ]
     104                 :            :   }
     105                 :            : 
     106                 :            :   /**
     107                 :            :    * \brief standard comparison operator
     108                 :            :    *
     109                 :            :    * \param[in] other Other UnstructuredSceneRssState.
     110                 :            :    *
     111                 :            :    * \returns \c true if both UnstructuredSceneRssState are different
     112                 :            :    */
     113                 :          6 :   bool operator!=(const UnstructuredSceneRssState &other) const
     114                 :            :   {
     115                 :          6 :     return !operator==(other);
     116                 :            :   }
     117                 :            : 
     118                 :            :   /*!
     119                 :            :    * Determines if the unstructured scene is safe.
     120                 :            :    */
     121                 :            :   bool isSafe;
     122                 :            : 
     123                 :            :   /*!
     124                 :            :    * The response resulting from an unstructured scene constellation.
     125                 :            :    */
     126                 :            :   ::ad::rss::state::UnstructuredSceneResponse response;
     127                 :            : 
     128                 :            :   /*!
     129                 :            :    * The allowed heading range resulting from a unstructured scene drive away response.
     130                 :            :    */
     131                 :            :   ::ad::rss::state::HeadingRange headingRange;
     132                 :            : 
     133                 :            :   /*!
     134                 :            :    * Additional information on the creation of the RSS state.
     135                 :            :    */
     136                 :            :   ::ad::rss::state::UnstructuredSceneStateInformation rssStateInformation;
     137                 :            : 
     138                 :            :   /*!
     139                 :            :    * RSS dynamics values along longitudinal coordinate system axis.
     140                 :            :    */
     141                 :            :   ::ad::rss::world::LongitudinalRssAccelerationValues alphaLon;
     142                 :            : };
     143                 :            : 
     144                 :            : } // namespace state
     145                 :            : } // namespace rss
     146                 :            : } // namespace ad
     147                 :            : 
     148                 :            : /*!
     149                 :            :  * \brief protect the definition of functions from duplicates by typedef usage within other data types
     150                 :            :  */
     151                 :            : #ifndef GEN_GUARD_AD_RSS_STATE_UNSTRUCTUREDSCENERSSSTATE
     152                 :            : #define GEN_GUARD_AD_RSS_STATE_UNSTRUCTUREDSCENERSSSTATE
     153                 :            : /*!
     154                 :            :  * @brief namespace ad
     155                 :            :  */
     156                 :            : namespace ad {
     157                 :            : /*!
     158                 :            :  * @brief namespace rss
     159                 :            :  */
     160                 :            : namespace rss {
     161                 :            : /*!
     162                 :            :  * @brief namespace state
     163                 :            :  */
     164                 :            : namespace state {
     165                 :            : 
     166                 :            : /**
     167                 :            :  * \brief standard ostream operator
     168                 :            :  *
     169                 :            :  * \param[in] os The output stream to write to
     170                 :            :  * \param[in] _value UnstructuredSceneRssState value
     171                 :            :  *
     172                 :            :  * \returns The stream object.
     173                 :            :  *
     174                 :            :  */
     175                 :    1015850 : inline std::ostream &operator<<(std::ostream &os, UnstructuredSceneRssState const &_value)
     176                 :            : {
     177                 :    1015850 :   os << "UnstructuredSceneRssState(";
     178                 :    1015850 :   os << "isSafe:";
     179                 :    1015850 :   os << _value.isSafe;
     180                 :    1015850 :   os << ",";
     181                 :    1015850 :   os << "response:";
     182                 :    1015850 :   os << _value.response;
     183                 :    1015850 :   os << ",";
     184                 :    1015850 :   os << "headingRange:";
     185                 :    1015850 :   os << _value.headingRange;
     186                 :    1015850 :   os << ",";
     187                 :    1015850 :   os << "rssStateInformation:";
     188                 :    1015850 :   os << _value.rssStateInformation;
     189                 :    1015850 :   os << ",";
     190                 :    1015850 :   os << "alphaLon:";
     191                 :    1015850 :   os << _value.alphaLon;
     192                 :    1015850 :   os << ")";
     193                 :    1015850 :   return os;
     194                 :            : }
     195                 :            : 
     196                 :            : } // namespace state
     197                 :            : } // namespace rss
     198                 :            : } // namespace ad
     199                 :            : 
     200                 :            : namespace std {
     201                 :            : /*!
     202                 :            :  * \brief overload of the std::to_string for UnstructuredSceneRssState
     203                 :            :  */
     204                 :          1 : inline std::string to_string(::ad::rss::state::UnstructuredSceneRssState const &value)
     205                 :            : {
     206         [ +  - ]:          2 :   stringstream sstream;
     207         [ +  - ]:          1 :   sstream << value;
     208         [ +  - ]:          2 :   return sstream.str();
     209                 :            : }
     210                 :            : } // namespace std
     211                 :            : #endif // GEN_GUARD_AD_RSS_STATE_UNSTRUCTUREDSCENERSSSTATE

Generated by: LCOV version 1.14