LCOV - code coverage report
Current view: top level - generated/include/ad/rss/world - LateralRssAccelerationValues.hpp (source / functions) Hit Total Coverage
Test: ad_rss Lines: 18 18 100.0 %
Date: 2024-04-30 13:12:49 Functions: 5 5 100.0 %
Branches: 7 10 70.0 %

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

Generated by: LCOV version 1.14