LCOV - code coverage report
Current view: top level - generated/include/ad/map/match - MapMatchedObjectReferencePositionList.hpp (source / functions) Hit Total Coverage
Test: ad_map_access Lines: 7 8 87.5 %
Date: 2022-10-04 09:48:07 Functions: 1 1 100.0 %
Branches: 4 8 50.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 <sstream>
      22                 :            : #include <vector>
      23                 :            : #include "ad/map/match/MapMatchedPositionConfidenceList.hpp"
      24                 :            : /*!
      25                 :            :  * @brief namespace ad
      26                 :            :  */
      27                 :            : namespace ad {
      28                 :            : /*!
      29                 :            :  * @brief namespace map
      30                 :            :  */
      31                 :            : namespace map {
      32                 :            : /*!
      33                 :            :  * @brief namespace match
      34                 :            :  *
      35                 :            :  * Map matching
      36                 :            :  */
      37                 :            : namespace match {
      38                 :            : 
      39                 :            : /*!
      40                 :            :  * \brief DataType MapMatchedObjectReferencePositionList
      41                 :            :  *
      42                 :            :  * The list of the MapMatchedPositionConfidenceList of all ObjectReferencePoints.
      43                 :            :  */
      44                 :            : typedef std::vector<::ad::map::match::MapMatchedPositionConfidenceList> MapMatchedObjectReferencePositionList;
      45                 :            : 
      46                 :            : } // namespace match
      47                 :            : } // namespace map
      48                 :            : } // namespace ad
      49                 :            : 
      50                 :            : /*!
      51                 :            :  * \brief protect the definition of functions from duplicates by typedef usage within other data types
      52                 :            :  */
      53                 :            : #ifndef GEN_GUARD_VECTOR_VECTOR_AD_MAP_MATCH_MAPMATCHEDPOSITION
      54                 :            : #define GEN_GUARD_VECTOR_VECTOR_AD_MAP_MATCH_MAPMATCHEDPOSITION
      55                 :            : namespace std {
      56                 :            : /**
      57                 :            :  * \brief standard ostream operator
      58                 :            :  *
      59                 :            :  * \param[in] os The output stream to write to
      60                 :            :  * \param[in] _value MapMatchedObjectReferencePositionList value
      61                 :            :  *
      62                 :            :  * \returns The stream object.
      63                 :            :  *
      64                 :            :  */
      65                 :         17 : inline std::ostream &operator<<(std::ostream &os,
      66                 :            :                                 vector<::ad::map::match::MapMatchedPositionConfidenceList> const &_value)
      67                 :            : {
      68                 :         17 :   os << "[";
      69         [ +  + ]:         27 :   for (auto it = _value.begin(); it != _value.end(); it++)
      70                 :            :   {
      71         [ -  + ]:         10 :     if (it != _value.begin())
      72                 :            :     {
      73         [ #  # ]:          0 :       os << ",";
      74                 :            :     }
      75         [ +  - ]:         10 :     os << *it;
      76                 :            :   }
      77                 :         17 :   os << "]";
      78                 :         17 :   return os;
      79                 :            : }
      80                 :            : } // namespace std
      81                 :            : 
      82                 :            : namespace std {
      83                 :            : /*!
      84                 :            :  * \brief overload of the std::to_string for MapMatchedObjectReferencePositionList
      85                 :            :  */
      86                 :            : inline std::string to_string(::ad::map::match::MapMatchedObjectReferencePositionList const &value)
      87                 :            : {
      88                 :            :   stringstream sstream;
      89                 :            :   sstream << value;
      90                 :            :   return sstream.str();
      91                 :            : }
      92                 :            : } // namespace std
      93                 :            : #endif // GEN_GUARD_VECTOR_VECTOR_AD_MAP_MATCH_MAPMATCHEDPOSITION

Generated by: LCOV version 1.14