LCOV - code coverage report
Current view: top level - generated/include/ad/map/match - MapMatchedPositionConfidenceList.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/MapMatchedPosition.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 MapMatchedPositionConfidenceList
      41                 :            :  *
      42                 :            :  * Defines a list of map matched positions ordered by probability in decreasing order
      43                 :            :  */
      44                 :            : typedef std::vector<::ad::map::match::MapMatchedPosition> MapMatchedPositionConfidenceList;
      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_AD_MAP_MATCH_MAPMATCHEDPOSITION
      54                 :            : #define GEN_GUARD_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 MapMatchedPositionConfidenceList value
      61                 :            :  *
      62                 :            :  * \returns The stream object.
      63                 :            :  *
      64                 :            :  */
      65                 :         12 : inline std::ostream &operator<<(std::ostream &os, vector<::ad::map::match::MapMatchedPosition> const &_value)
      66                 :            : {
      67                 :         12 :   os << "[";
      68         [ +  + ]:         23 :   for (auto it = _value.begin(); it != _value.end(); it++)
      69                 :            :   {
      70         [ -  + ]:         11 :     if (it != _value.begin())
      71                 :            :     {
      72         [ #  # ]:          0 :       os << ",";
      73                 :            :     }
      74         [ +  - ]:         11 :     os << *it;
      75                 :            :   }
      76                 :         12 :   os << "]";
      77                 :         12 :   return os;
      78                 :            : }
      79                 :            : } // namespace std
      80                 :            : 
      81                 :            : namespace std {
      82                 :            : /*!
      83                 :            :  * \brief overload of the std::to_string for MapMatchedPositionConfidenceList
      84                 :            :  */
      85                 :            : inline std::string to_string(::ad::map::match::MapMatchedPositionConfidenceList const &value)
      86                 :            : {
      87                 :            :   stringstream sstream;
      88                 :            :   sstream << value;
      89                 :            :   return sstream.str();
      90                 :            : }
      91                 :            : } // namespace std
      92                 :            : #endif // GEN_GUARD_VECTOR_AD_MAP_MATCH_MAPMATCHEDPOSITION

Generated by: LCOV version 1.14