LCOV - code coverage report
Current view: top level - generated/include/ad/map/lane - ENUBorder.hpp (source / functions) Hit Total Coverage
Test: ad_map_access Lines: 22 22 100.0 %
Date: 2022-10-04 09:48:07 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: 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 <iostream>
      21                 :            : #include <memory>
      22                 :            : #include <sstream>
      23                 :            : #include "ad/map/point/ENUEdge.hpp"
      24                 :            : /*!
      25                 :            :  * @brief namespace ad
      26                 :            :  */
      27                 :            : namespace ad {
      28                 :            : /*!
      29                 :            :  * @brief namespace map
      30                 :            :  */
      31                 :            : namespace map {
      32                 :            : /*!
      33                 :            :  * @brief namespace lane
      34                 :            :  *
      35                 :            :  * Handling of lanes
      36                 :            :  */
      37                 :            : namespace lane {
      38                 :            : 
      39                 :            : /*!
      40                 :            :  * \brief DataType ENUBorder
      41                 :            :  *
      42                 :            :  * Border in local ENU(east, north, up) coordinate system
      43                 :            :  */
      44                 :         19 : struct ENUBorder
      45                 :            : {
      46                 :            :   /*!
      47                 :            :    * \brief Smart pointer on ENUBorder
      48                 :            :    */
      49                 :            :   typedef std::shared_ptr<ENUBorder> Ptr;
      50                 :            : 
      51                 :            :   /*!
      52                 :            :    * \brief Smart pointer on constant ENUBorder
      53                 :            :    */
      54                 :            :   typedef std::shared_ptr<ENUBorder const> ConstPtr;
      55                 :            : 
      56                 :            :   /*!
      57                 :            :    * \brief standard constructor
      58                 :            :    */
      59                 :         35 :   ENUBorder() = default;
      60                 :            : 
      61                 :            :   /*!
      62                 :            :    * \brief standard destructor
      63                 :            :    */
      64                 :         52 :   ~ENUBorder() = default;
      65                 :            : 
      66                 :            :   /*!
      67                 :            :    * \brief standard copy constructor
      68                 :            :    */
      69         [ +  - ]:         16 :   ENUBorder(const ENUBorder &other) = default;
      70                 :            : 
      71                 :            :   /*!
      72                 :            :    * \brief standard move constructor
      73                 :            :    */
      74                 :          1 :   ENUBorder(ENUBorder &&other) = default;
      75                 :            : 
      76                 :            :   /**
      77                 :            :    * \brief standard assignment operator
      78                 :            :    *
      79                 :            :    * \param[in] other Other ENUBorder
      80                 :            :    *
      81                 :            :    * \returns Reference to this ENUBorder.
      82                 :            :    */
      83                 :            :   ENUBorder &operator=(const ENUBorder &other) = default;
      84                 :            : 
      85                 :            :   /**
      86                 :            :    * \brief standard move operator
      87                 :            :    *
      88                 :            :    * \param[in] other Other ENUBorder
      89                 :            :    *
      90                 :            :    * \returns Reference to this ENUBorder.
      91                 :            :    */
      92                 :            :   ENUBorder &operator=(ENUBorder &&other) = default;
      93                 :            : 
      94                 :            :   /**
      95                 :            :    * \brief standard comparison operator
      96                 :            :    *
      97                 :            :    * \param[in] other Other ENUBorder
      98                 :            :    *
      99                 :            :    * \returns \c true if both ENUBorder are equal
     100                 :            :    */
     101                 :         11 :   bool operator==(const ENUBorder &other) const
     102                 :            :   {
     103   [ +  +  +  + ]:         11 :     return (left == other.left) && (right == other.right);
     104                 :            :   }
     105                 :            : 
     106                 :            :   /**
     107                 :            :    * \brief standard comparison operator
     108                 :            :    *
     109                 :            :    * \param[in] other Other ENUBorder.
     110                 :            :    *
     111                 :            :    * \returns \c true if both ENUBorder are different
     112                 :            :    */
     113                 :          4 :   bool operator!=(const ENUBorder &other) const
     114                 :            :   {
     115                 :          4 :     return !operator==(other);
     116                 :            :   }
     117                 :            : 
     118                 :            :   /*!
     119                 :            :    * Left edge of border
     120                 :            :    */
     121                 :            :   ::ad::map::point::ENUEdge left;
     122                 :            : 
     123                 :            :   /*!
     124                 :            :    * Right edge of border
     125                 :            :    */
     126                 :            :   ::ad::map::point::ENUEdge right;
     127                 :            : };
     128                 :            : 
     129                 :            : } // namespace lane
     130                 :            : } // namespace map
     131                 :            : } // namespace ad
     132                 :            : 
     133                 :            : /*!
     134                 :            :  * \brief protect the definition of functions from duplicates by typedef usage within other data types
     135                 :            :  */
     136                 :            : #ifndef GEN_GUARD_AD_MAP_LANE_ENUBORDER
     137                 :            : #define GEN_GUARD_AD_MAP_LANE_ENUBORDER
     138                 :            : /*!
     139                 :            :  * @brief namespace ad
     140                 :            :  */
     141                 :            : namespace ad {
     142                 :            : /*!
     143                 :            :  * @brief namespace map
     144                 :            :  */
     145                 :            : namespace map {
     146                 :            : /*!
     147                 :            :  * @brief namespace lane
     148                 :            :  *
     149                 :            :  * Handling of lanes
     150                 :            :  */
     151                 :            : namespace lane {
     152                 :            : 
     153                 :            : /**
     154                 :            :  * \brief standard ostream operator
     155                 :            :  *
     156                 :            :  * \param[in] os The output stream to write to
     157                 :            :  * \param[in] _value ENUBorder value
     158                 :            :  *
     159                 :            :  * \returns The stream object.
     160                 :            :  *
     161                 :            :  */
     162                 :          2 : inline std::ostream &operator<<(std::ostream &os, ENUBorder const &_value)
     163                 :            : {
     164                 :          2 :   os << "ENUBorder(";
     165                 :          2 :   os << "left:";
     166                 :          2 :   os << _value.left;
     167                 :          2 :   os << ",";
     168                 :          2 :   os << "right:";
     169                 :          2 :   os << _value.right;
     170                 :          2 :   os << ")";
     171                 :          2 :   return os;
     172                 :            : }
     173                 :            : 
     174                 :            : } // namespace lane
     175                 :            : } // namespace map
     176                 :            : } // namespace ad
     177                 :            : 
     178                 :            : namespace std {
     179                 :            : /*!
     180                 :            :  * \brief overload of the std::to_string for ENUBorder
     181                 :            :  */
     182                 :          1 : inline std::string to_string(::ad::map::lane::ENUBorder const &value)
     183                 :            : {
     184         [ +  - ]:          2 :   stringstream sstream;
     185         [ +  - ]:          1 :   sstream << value;
     186         [ +  - ]:          2 :   return sstream.str();
     187                 :            : }
     188                 :            : } // namespace std
     189                 :            : #endif // GEN_GUARD_AD_MAP_LANE_ENUBORDER

Generated by: LCOV version 1.14