LCOV - code coverage report
Current view: top level - generated/include/ad/map/access - PartitionIdList.hpp (source / functions) Hit Total Coverage
Test: ad_map_access Lines: 5 8 62.5 %
Date: 2022-10-04 09:48:07 Functions: 1 1 100.0 %
Branches: 1 8 12.5 %

           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/access/PartitionId.hpp"
      24                 :            : /*!
      25                 :            :  * @brief namespace ad
      26                 :            :  */
      27                 :            : namespace ad {
      28                 :            : /*!
      29                 :            :  * @brief namespace map
      30                 :            :  */
      31                 :            : namespace map {
      32                 :            : /*!
      33                 :            :  * @brief namespace access
      34                 :            :  *
      35                 :            :  * Accessing map data
      36                 :            :  */
      37                 :            : namespace access {
      38                 :            : 
      39                 :            : /*!
      40                 :            :  * \brief DataType PartitionIdList
      41                 :            :  */
      42                 :            : typedef std::vector<::ad::map::access::PartitionId> PartitionIdList;
      43                 :            : 
      44                 :            : } // namespace access
      45                 :            : } // namespace map
      46                 :            : } // namespace ad
      47                 :            : 
      48                 :            : /*!
      49                 :            :  * \brief protect the definition of functions from duplicates by typedef usage within other data types
      50                 :            :  */
      51                 :            : #ifndef GEN_GUARD_VECTOR_AD_MAP_ACCESS_PARTITIONID
      52                 :            : #define GEN_GUARD_VECTOR_AD_MAP_ACCESS_PARTITIONID
      53                 :            : namespace std {
      54                 :            : /**
      55                 :            :  * \brief standard ostream operator
      56                 :            :  *
      57                 :            :  * \param[in] os The output stream to write to
      58                 :            :  * \param[in] _value PartitionIdList value
      59                 :            :  *
      60                 :            :  * \returns The stream object.
      61                 :            :  *
      62                 :            :  */
      63                 :          1 : inline std::ostream &operator<<(std::ostream &os, vector<::ad::map::access::PartitionId> const &_value)
      64                 :            : {
      65                 :          1 :   os << "[";
      66         [ -  + ]:          1 :   for (auto it = _value.begin(); it != _value.end(); it++)
      67                 :            :   {
      68         [ #  # ]:          0 :     if (it != _value.begin())
      69                 :            :     {
      70         [ #  # ]:          0 :       os << ",";
      71                 :            :     }
      72         [ #  # ]:          0 :     os << *it;
      73                 :            :   }
      74                 :          1 :   os << "]";
      75                 :          1 :   return os;
      76                 :            : }
      77                 :            : } // namespace std
      78                 :            : 
      79                 :            : namespace std {
      80                 :            : /*!
      81                 :            :  * \brief overload of the std::to_string for PartitionIdList
      82                 :            :  */
      83                 :            : inline std::string to_string(::ad::map::access::PartitionIdList const &value)
      84                 :            : {
      85                 :            :   stringstream sstream;
      86                 :            :   sstream << value;
      87                 :            :   return sstream.str();
      88                 :            : }
      89                 :            : } // namespace std
      90                 :            : #endif // GEN_GUARD_VECTOR_AD_MAP_ACCESS_PARTITIONID

Generated by: LCOV version 1.14