LCOV - code coverage report
Current view: top level - generated/include/ad/rss/state - UnstructuredSceneStateInformation.hpp (source / functions) Hit Total Coverage
Test: ad_rss Lines: 23 23 100.0 %
Date: 2024-05-07 10:58:10 Functions: 10 10 100.0 %
Branches: 8 12 66.7 %

           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/world/UnstructuredTrajectorySet.hpp"
      24                 :            : /*!
      25                 :            :  * @brief namespace ad
      26                 :            :  */
      27                 :            : namespace ad {
      28                 :            : /*!
      29                 :            :  * @brief namespace rss
      30                 :            :  */
      31                 :            : namespace rss {
      32                 :            : /*!
      33                 :            :  * @brief namespace state
      34                 :            :  */
      35                 :            : namespace state {
      36                 :            : 
      37                 :            : /*!
      38                 :            :  * \brief DataType UnstructuredSceneStateInformation
      39                 :            :  */
      40                 :        312 : struct UnstructuredSceneStateInformation
      41                 :            : {
      42                 :            :   /*!
      43                 :            :    * \brief Smart pointer on UnstructuredSceneStateInformation
      44                 :            :    */
      45                 :            :   typedef std::shared_ptr<UnstructuredSceneStateInformation> Ptr;
      46                 :            : 
      47                 :            :   /*!
      48                 :            :    * \brief Smart pointer on constant UnstructuredSceneStateInformation
      49                 :            :    */
      50                 :            :   typedef std::shared_ptr<UnstructuredSceneStateInformation const> ConstPtr;
      51                 :            : 
      52                 :            :   /*!
      53                 :            :    * \brief standard constructor
      54                 :            :    */
      55                 :      71995 :   UnstructuredSceneStateInformation() = default;
      56                 :            : 
      57                 :            :   /*!
      58                 :            :    * \brief standard destructor
      59                 :            :    */
      60                 :     198676 :   ~UnstructuredSceneStateInformation() = default;
      61                 :            : 
      62                 :            :   /*!
      63                 :            :    * \brief standard copy constructor
      64                 :            :    */
      65         [ +  - ]:      58189 :   UnstructuredSceneStateInformation(const UnstructuredSceneStateInformation &other) = default;
      66                 :            : 
      67                 :            :   /*!
      68                 :            :    * \brief standard move constructor
      69                 :            :    */
      70                 :      68493 :   UnstructuredSceneStateInformation(UnstructuredSceneStateInformation &&other) = default;
      71                 :            : 
      72                 :            :   /**
      73                 :            :    * \brief standard assignment operator
      74                 :            :    *
      75                 :            :    * \param[in] other Other UnstructuredSceneStateInformation
      76                 :            :    *
      77                 :            :    * \returns Reference to this UnstructuredSceneStateInformation.
      78                 :            :    */
      79                 :            :   UnstructuredSceneStateInformation &operator=(const UnstructuredSceneStateInformation &other) = default;
      80                 :            : 
      81                 :            :   /**
      82                 :            :    * \brief standard move operator
      83                 :            :    *
      84                 :            :    * \param[in] other Other UnstructuredSceneStateInformation
      85                 :            :    *
      86                 :            :    * \returns Reference to this UnstructuredSceneStateInformation.
      87                 :            :    */
      88                 :            :   UnstructuredSceneStateInformation &operator=(UnstructuredSceneStateInformation &&other) = default;
      89                 :            : 
      90                 :            :   /**
      91                 :            :    * \brief standard comparison operator
      92                 :            :    *
      93                 :            :    * \param[in] other Other UnstructuredSceneStateInformation
      94                 :            :    *
      95                 :            :    * \returns \c true if both UnstructuredSceneStateInformation are equal
      96                 :            :    */
      97                 :         44 :   bool operator==(const UnstructuredSceneStateInformation &other) const
      98                 :            :   {
      99                 :         44 :     return (brakeTrajectorySet == other.brakeTrajectorySet)
     100   [ +  +  +  + ]:         44 :       && (continueForwardTrajectorySet == other.continueForwardTrajectorySet);
     101                 :            :   }
     102                 :            : 
     103                 :            :   /**
     104                 :            :    * \brief standard comparison operator
     105                 :            :    *
     106                 :            :    * \param[in] other Other UnstructuredSceneStateInformation.
     107                 :            :    *
     108                 :            :    * \returns \c true if both UnstructuredSceneStateInformation are different
     109                 :            :    */
     110                 :          3 :   bool operator!=(const UnstructuredSceneStateInformation &other) const
     111                 :            :   {
     112                 :          3 :     return !operator==(other);
     113                 :            :   }
     114                 :            : 
     115                 :            :   /*!
     116                 :            :    * The set of brake trajectories considered on calculation of the RSS state.
     117                 :            :    */
     118                 :            :   ::ad::rss::world::UnstructuredTrajectorySet brakeTrajectorySet;
     119                 :            : 
     120                 :            :   /*!
     121                 :            :    * The set of continue forward trajectories considered on calculation of the RSS state.
     122                 :            :    */
     123                 :            :   ::ad::rss::world::UnstructuredTrajectorySet continueForwardTrajectorySet;
     124                 :            : };
     125                 :            : 
     126                 :            : } // namespace state
     127                 :            : } // namespace rss
     128                 :            : } // namespace ad
     129                 :            : 
     130                 :            : /*!
     131                 :            :  * \brief protect the definition of functions from duplicates by typedef usage within other data types
     132                 :            :  */
     133                 :            : #ifndef GEN_GUARD_AD_RSS_STATE_UNSTRUCTUREDSCENESTATEINFORMATION
     134                 :            : #define GEN_GUARD_AD_RSS_STATE_UNSTRUCTUREDSCENESTATEINFORMATION
     135                 :            : /*!
     136                 :            :  * @brief namespace ad
     137                 :            :  */
     138                 :            : namespace ad {
     139                 :            : /*!
     140                 :            :  * @brief namespace rss
     141                 :            :  */
     142                 :            : namespace rss {
     143                 :            : /*!
     144                 :            :  * @brief namespace state
     145                 :            :  */
     146                 :            : namespace state {
     147                 :            : 
     148                 :            : /**
     149                 :            :  * \brief standard ostream operator
     150                 :            :  *
     151                 :            :  * \param[in] os The output stream to write to
     152                 :            :  * \param[in] _value UnstructuredSceneStateInformation value
     153                 :            :  *
     154                 :            :  * \returns The stream object.
     155                 :            :  *
     156                 :            :  */
     157                 :    1015860 : inline std::ostream &operator<<(std::ostream &os, UnstructuredSceneStateInformation const &_value)
     158                 :            : {
     159                 :    1015860 :   os << "UnstructuredSceneStateInformation(";
     160                 :    1015860 :   os << "brakeTrajectorySet:";
     161                 :    1015860 :   os << _value.brakeTrajectorySet;
     162                 :    1015860 :   os << ",";
     163                 :    1015860 :   os << "continueForwardTrajectorySet:";
     164                 :    1015860 :   os << _value.continueForwardTrajectorySet;
     165                 :    1015860 :   os << ")";
     166                 :    1015860 :   return os;
     167                 :            : }
     168                 :            : 
     169                 :            : } // namespace state
     170                 :            : } // namespace rss
     171                 :            : } // namespace ad
     172                 :            : 
     173                 :            : namespace std {
     174                 :            : /*!
     175                 :            :  * \brief overload of the std::to_string for UnstructuredSceneStateInformation
     176                 :            :  */
     177                 :          1 : inline std::string to_string(::ad::rss::state::UnstructuredSceneStateInformation const &value)
     178                 :            : {
     179         [ +  - ]:          2 :   stringstream sstream;
     180         [ +  - ]:          1 :   sstream << value;
     181         [ +  - ]:          2 :   return sstream.str();
     182                 :            : }
     183                 :            : } // namespace std
     184                 :            : #endif // GEN_GUARD_AD_RSS_STATE_UNSTRUCTUREDSCENESTATEINFORMATION

Generated by: LCOV version 1.14