LCOV - code coverage report
Current view: top level - generated/include/ad/rss/world - RoadArea.hpp (source / functions) Hit Total Coverage
Test: ad_rss Lines: 8 8 100.0 %
Date: 2024-05-02 09:41:50 Functions: 1 1 100.0 %
Branches: 6 8 75.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 <sstream>
      22                 :            : #include <vector>
      23                 :            : #include "ad/rss/world/RoadSegment.hpp"
      24                 :            : /*!
      25                 :            :  * @brief namespace ad
      26                 :            :  */
      27                 :            : namespace ad {
      28                 :            : /*!
      29                 :            :  * @brief namespace rss
      30                 :            :  */
      31                 :            : namespace rss {
      32                 :            : /*!
      33                 :            :  * @brief namespace world
      34                 :            :  */
      35                 :            : namespace world {
      36                 :            : 
      37                 :            : /*!
      38                 :            :  * \brief DataType RoadArea
      39                 :            :  *
      40                 :            :  * A RoadArea is defined by longitudinal neighboring road segments. The road segments within a road area have to be
      41                 :            :  * ordered from start to end in respect to the driving direction.
      42                 :            :  */
      43                 :            : typedef std::vector<::ad::rss::world::RoadSegment> RoadArea;
      44                 :            : 
      45                 :            : } // namespace world
      46                 :            : } // namespace rss
      47                 :            : } // namespace ad
      48                 :            : 
      49                 :            : /*!
      50                 :            :  * \brief protect the definition of functions from duplicates by typedef usage within other data types
      51                 :            :  */
      52                 :            : #ifndef GEN_GUARD_VECTOR_VECTOR_AD_RSS_WORLD_LANESEGMENT
      53                 :            : #define GEN_GUARD_VECTOR_VECTOR_AD_RSS_WORLD_LANESEGMENT
      54                 :            : namespace std {
      55                 :            : /**
      56                 :            :  * \brief standard ostream operator
      57                 :            :  *
      58                 :            :  * \param[in] os The output stream to write to
      59                 :            :  * \param[in] _value RoadArea value
      60                 :            :  *
      61                 :            :  * \returns The stream object.
      62                 :            :  *
      63                 :            :  */
      64                 :    2003200 : inline std::ostream &operator<<(std::ostream &os, vector<::ad::rss::world::RoadSegment> const &_value)
      65                 :            : {
      66                 :    2003200 :   os << "[";
      67         [ +  + ]:    2007240 :   for (auto it = _value.begin(); it != _value.end(); it++)
      68                 :            :   {
      69         [ +  + ]:       4049 :     if (it != _value.begin())
      70                 :            :     {
      71         [ +  - ]:       1318 :       os << ",";
      72                 :            :     }
      73         [ +  - ]:       4049 :     os << *it;
      74                 :            :   }
      75                 :    2003200 :   os << "]";
      76                 :    2003200 :   return os;
      77                 :            : }
      78                 :            : } // namespace std
      79                 :            : 
      80                 :            : namespace std {
      81                 :            : /*!
      82                 :            :  * \brief overload of the std::to_string for RoadArea
      83                 :            :  */
      84                 :            : inline std::string to_string(::ad::rss::world::RoadArea const &value)
      85                 :            : {
      86                 :            :   stringstream sstream;
      87                 :            :   sstream << value;
      88                 :            :   return sstream.str();
      89                 :            : }
      90                 :            : } // namespace std
      91                 :            : #endif // GEN_GUARD_VECTOR_VECTOR_AD_RSS_WORLD_LANESEGMENT

Generated by: LCOV version 1.14