LCOV - code coverage report
Current view: top level - generated/include/ad/rss/world - LongitudinalRssAccelerationValues.hpp (source / functions) Hit Total Coverage
Test: ad_rss Lines: 25 25 100.0 %
Date: 2024-05-02 09:41:50 Functions: 5 5 100.0 %
Branches: 11 14 78.6 %

           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 <limits>
      22                 :            : #include <memory>
      23                 :            : #include <sstream>
      24                 :            : #include "ad/physics/Acceleration.hpp"
      25                 :            : /*!
      26                 :            :  * @brief namespace ad
      27                 :            :  */
      28                 :            : namespace ad {
      29                 :            : /*!
      30                 :            :  * @brief namespace rss
      31                 :            :  */
      32                 :            : namespace rss {
      33                 :            : /*!
      34                 :            :  * @brief namespace world
      35                 :            :  */
      36                 :            : namespace world {
      37                 :            : 
      38                 :            : /*!
      39                 :            :  * \brief DataType LongitudinalRssAccelerationValues
      40                 :            :  *
      41                 :            :  * Collection of the RSS acceleration values in longitudinal direction.
      42                 :            :  */
      43                 :            : struct LongitudinalRssAccelerationValues
      44                 :            : {
      45                 :            :   /*!
      46                 :            :    * \brief Smart pointer on LongitudinalRssAccelerationValues
      47                 :            :    */
      48                 :            :   typedef std::shared_ptr<LongitudinalRssAccelerationValues> Ptr;
      49                 :            : 
      50                 :            :   /*!
      51                 :            :    * \brief Smart pointer on constant LongitudinalRssAccelerationValues
      52                 :            :    */
      53                 :            :   typedef std::shared_ptr<LongitudinalRssAccelerationValues const> ConstPtr;
      54                 :            : 
      55                 :            :   /*!
      56                 :            :    * \brief standard constructor
      57                 :            :    */
      58                 :     160814 :   LongitudinalRssAccelerationValues() = default;
      59                 :            : 
      60                 :            :   /*!
      61                 :            :    * \brief standard destructor
      62                 :            :    */
      63                 :            :   ~LongitudinalRssAccelerationValues() = default;
      64                 :            : 
      65                 :            :   /*!
      66                 :            :    * \brief standard copy constructor
      67                 :            :    */
      68                 :            :   LongitudinalRssAccelerationValues(const LongitudinalRssAccelerationValues &other) = default;
      69                 :            : 
      70                 :            :   /*!
      71                 :            :    * \brief standard move constructor
      72                 :            :    */
      73                 :            :   LongitudinalRssAccelerationValues(LongitudinalRssAccelerationValues &&other) = default;
      74                 :            : 
      75                 :            :   /**
      76                 :            :    * \brief standard assignment operator
      77                 :            :    *
      78                 :            :    * \param[in] other Other LongitudinalRssAccelerationValues
      79                 :            :    *
      80                 :            :    * \returns Reference to this LongitudinalRssAccelerationValues.
      81                 :            :    */
      82                 :            :   LongitudinalRssAccelerationValues &operator=(const LongitudinalRssAccelerationValues &other) = default;
      83                 :            : 
      84                 :            :   /**
      85                 :            :    * \brief standard move operator
      86                 :            :    *
      87                 :            :    * \param[in] other Other LongitudinalRssAccelerationValues
      88                 :            :    *
      89                 :            :    * \returns Reference to this LongitudinalRssAccelerationValues.
      90                 :            :    */
      91                 :            :   LongitudinalRssAccelerationValues &operator=(LongitudinalRssAccelerationValues &&other) = default;
      92                 :            : 
      93                 :            :   /**
      94                 :            :    * \brief standard comparison operator
      95                 :            :    *
      96                 :            :    * \param[in] other Other LongitudinalRssAccelerationValues
      97                 :            :    *
      98                 :            :    * \returns \c true if both LongitudinalRssAccelerationValues are equal
      99                 :            :    */
     100                 :        284 :   bool operator==(const LongitudinalRssAccelerationValues &other) const
     101                 :            :   {
     102   [ +  +  +  + ]:        548 :     return (accelMax == other.accelMax) && (brakeMax == other.brakeMax) && (brakeMin == other.brakeMin)
     103   [ +  +  +  + ]:        548 :       && (brakeMinCorrect == other.brakeMinCorrect);
     104                 :            :   }
     105                 :            : 
     106                 :            :   /**
     107                 :            :    * \brief standard comparison operator
     108                 :            :    *
     109                 :            :    * \param[in] other Other LongitudinalRssAccelerationValues.
     110                 :            :    *
     111                 :            :    * \returns \c true if both LongitudinalRssAccelerationValues are different
     112                 :            :    */
     113                 :          5 :   bool operator!=(const LongitudinalRssAccelerationValues &other) const
     114                 :            :   {
     115                 :          5 :     return !operator==(other);
     116                 :            :   }
     117                 :            : 
     118                 :            :   /*!
     119                 :            :    * Absolute amount of the maximum allowed acceleration.  This value has always to be positive, zero is allowed.
     120                 :            :    */
     121                 :            :   ::ad::physics::Acceleration accelMax{0.0};
     122                 :            : 
     123                 :            :   /*!
     124                 :            :    * Absolute amount of the maximum allowed braking deceleration.  This value has always to be positive and not smaller
     125                 :            :    * than brakeMin.
     126                 :            :    */
     127                 :            :   ::ad::physics::Acceleration brakeMax{0.0};
     128                 :            : 
     129                 :            :   /*!
     130                 :            :    * Absolute amount of the minimum allowed breaking deceleration.  This value has always to be positive and not smaller
     131                 :            :    * than brakeMinCorrect.
     132                 :            :    */
     133                 :            :   ::ad::physics::Acceleration brakeMin{0.0};
     134                 :            : 
     135                 :            :   /*!
     136                 :            :    * Absolute amount of the minimum allowed breaking deceleration when driving on the correct lane.  This value has
     137                 :            :    * always to be positive.
     138                 :            :    */
     139                 :            :   ::ad::physics::Acceleration brakeMinCorrect{0.0};
     140                 :            : };
     141                 :            : 
     142                 :            : } // namespace world
     143                 :            : } // namespace rss
     144                 :            : } // namespace ad
     145                 :            : 
     146                 :            : /*!
     147                 :            :  * \brief protect the definition of functions from duplicates by typedef usage within other data types
     148                 :            :  */
     149                 :            : #ifndef GEN_GUARD_AD_RSS_WORLD_LONGITUDINALRSSACCELERATIONVALUES
     150                 :            : #define GEN_GUARD_AD_RSS_WORLD_LONGITUDINALRSSACCELERATIONVALUES
     151                 :            : /*!
     152                 :            :  * @brief namespace ad
     153                 :            :  */
     154                 :            : namespace ad {
     155                 :            : /*!
     156                 :            :  * @brief namespace rss
     157                 :            :  */
     158                 :            : namespace rss {
     159                 :            : /*!
     160                 :            :  * @brief namespace world
     161                 :            :  */
     162                 :            : namespace world {
     163                 :            : 
     164                 :            : /**
     165                 :            :  * \brief standard ostream operator
     166                 :            :  *
     167                 :            :  * \param[in] os The output stream to write to
     168                 :            :  * \param[in] _value LongitudinalRssAccelerationValues value
     169                 :            :  *
     170                 :            :  * \returns The stream object.
     171                 :            :  *
     172                 :            :  */
     173                 :    6076240 : inline std::ostream &operator<<(std::ostream &os, LongitudinalRssAccelerationValues const &_value)
     174                 :            : {
     175                 :    6076240 :   os << "LongitudinalRssAccelerationValues(";
     176                 :    6076240 :   os << "accelMax:";
     177                 :    6076240 :   os << _value.accelMax;
     178                 :    6076240 :   os << ",";
     179                 :    6076240 :   os << "brakeMax:";
     180                 :    6076240 :   os << _value.brakeMax;
     181                 :    6076240 :   os << ",";
     182                 :    6076240 :   os << "brakeMin:";
     183                 :    6076240 :   os << _value.brakeMin;
     184                 :    6076240 :   os << ",";
     185                 :    6076240 :   os << "brakeMinCorrect:";
     186                 :    6076240 :   os << _value.brakeMinCorrect;
     187                 :    6076240 :   os << ")";
     188                 :    6076240 :   return os;
     189                 :            : }
     190                 :            : 
     191                 :            : } // namespace world
     192                 :            : } // namespace rss
     193                 :            : } // namespace ad
     194                 :            : 
     195                 :            : namespace std {
     196                 :            : /*!
     197                 :            :  * \brief overload of the std::to_string for LongitudinalRssAccelerationValues
     198                 :            :  */
     199                 :          1 : inline std::string to_string(::ad::rss::world::LongitudinalRssAccelerationValues const &value)
     200                 :            : {
     201         [ +  - ]:          2 :   stringstream sstream;
     202         [ +  - ]:          1 :   sstream << value;
     203         [ +  - ]:          2 :   return sstream.str();
     204                 :            : }
     205                 :            : } // namespace std
     206                 :            : #endif // GEN_GUARD_AD_RSS_WORLD_LONGITUDINALRSSACCELERATIONVALUES

Generated by: LCOV version 1.14