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

Generated by: LCOV version 1.14