LCOV - code coverage report
Current view: top level - include/ad/map/lane - LaneIdSet.hpp (source / functions) Hit Total Coverage
Test: ad_map_access Lines: 0 8 0.0 %
Date: 2022-10-04 09:48:07 Functions: 0 1 0.0 %
Branches: 0 8 0.0 %

           Branch data     Line data    Source code
       1                 :            : // ----------------- BEGIN LICENSE BLOCK ---------------------------------
       2                 :            : //
       3                 :            : // Copyright (C) 2018-2021 Intel Corporation
       4                 :            : //
       5                 :            : // SPDX-License-Identifier: MIT
       6                 :            : //
       7                 :            : // ----------------- END LICENSE BLOCK -----------------------------------
       8                 :            : /**
       9                 :            :  * @file
      10                 :            :  */
      11                 :            : 
      12                 :            : #pragma once
      13                 :            : 
      14                 :            : #include <functional>
      15                 :            : #include <set>
      16                 :            : #include <sstream>
      17                 :            : #include <string>
      18                 :            : #include "ad/map/lane/LaneId.hpp"
      19                 :            : 
      20                 :            : /** @brief namespace ad */
      21                 :            : namespace ad {
      22                 :            : /** @brief namespace map */
      23                 :            : namespace map {
      24                 :            : /** @brief namespace lane */
      25                 :            : namespace lane {
      26                 :            : 
      27                 :            : typedef std::set<LaneId> LaneIdSet;
      28                 :            : 
      29                 :            : } // namespace lane
      30                 :            : } // namespace map
      31                 :            : } // namespace ad
      32                 :            : 
      33                 :            : namespace std {
      34                 :            : 
      35                 :          0 : inline std::ostream &operator<<(std::ostream &os, ::ad::map::lane::LaneIdSet const &laneIdSet)
      36                 :            : {
      37                 :          0 :   os << "[ ";
      38         [ #  # ]:          0 :   for (auto it = laneIdSet.begin(); it != laneIdSet.end(); ++it)
      39                 :            :   {
      40         [ #  # ]:          0 :     if (it != laneIdSet.begin())
      41                 :            :     {
      42         [ #  # ]:          0 :       os << ", ";
      43                 :            :     }
      44         [ #  # ]:          0 :     os << *it;
      45                 :            :   }
      46                 :          0 :   os << "]";
      47                 :          0 :   return os;
      48                 :            : }
      49                 :            : 
      50                 :            : static inline std::string to_string(::ad::map::lane::LaneIdSet const &laneIdSet)
      51                 :            : {
      52                 :            :   stringstream sstream;
      53                 :            :   sstream << laneIdSet;
      54                 :            :   return sstream.str();
      55                 :            : }
      56                 :            : } // namespace std

Generated by: LCOV version 1.14