LCOV - code coverage report
Current view: top level - generated/include/ad/rss/map - RssObjectResultList.hpp (source / functions) Hit Total Coverage
Test: ad_rss_map_integration Lines: 14 15 93.3 %
Date: 2025-07-22 06:56:19 Functions: 3 3 100.0 %
Branches: 7 14 50.0 %

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * ----------------- BEGIN LICENSE BLOCK ---------------------------------
       3                 :            :  *
       4                 :            :  * Copyright (C) 2018-2022 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-2046
      16                 :            :  */
      17                 :            : 
      18                 :            : #pragma once
      19                 :            : 
      20                 :            : #include <iostream>
      21                 :            : #include <sstream>
      22                 :            : #include <vector>
      23                 :            : #include "ad/rss/map/RssObjectResult.hpp"
      24                 :            : /*!
      25                 :            :  * @brief namespace ad
      26                 :            :  */
      27                 :            : namespace ad {
      28                 :            : /*!
      29                 :            :  * @brief namespace rss
      30                 :            :  */
      31                 :            : namespace rss {
      32                 :            : /*!
      33                 :            :  * @brief namespace map
      34                 :            :  */
      35                 :            : namespace map {
      36                 :            : 
      37                 :            : /*!
      38                 :            :  * \brief DataType RssObjectResultList
      39                 :            :  *
      40                 :            :  * A vector of RssObjectResult
      41                 :            :  */
      42                 :            : typedef std::vector<::ad::rss::map::RssObjectResult> RssObjectResultList;
      43                 :            : 
      44                 :            : } // namespace map
      45                 :            : } // namespace rss
      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_RSS_MAP_RSSOBJECTRESULT
      52                 :            : #define GEN_GUARD_VECTOR_AD_RSS_MAP_RSSOBJECTRESULT
      53                 :            : namespace std {
      54                 :            : /**
      55                 :            :  * \brief standard ostream operator
      56                 :            :  *
      57                 :            :  * \param[in] os The output stream to write to
      58                 :            :  * \param[in] _value RssObjectResultList value
      59                 :            :  *
      60                 :            :  * \returns The stream object.
      61                 :            :  *
      62                 :            :  */
      63                 :          2 : inline std::ostream &operator<<(std::ostream &os, vector<::ad::rss::map::RssObjectResult> const &_value)
      64                 :            : {
      65                 :          2 :   os << "[";
      66         [ +  + ]:          3 :   for (auto it = _value.begin(); it != _value.end(); it++)
      67                 :            :   {
      68         [ -  + ]:          1 :     if (it != _value.begin())
      69                 :            :     {
      70         [ #  # ]:          0 :       os << ",";
      71                 :            :     }
      72         [ +  - ]:          1 :     os << *it;
      73                 :            :   }
      74                 :          2 :   os << "]";
      75                 :          2 :   return os;
      76                 :            : }
      77                 :            : } // namespace std
      78                 :            : 
      79                 :            : namespace std {
      80                 :            : /*!
      81                 :            :  * \brief overload of the std::to_string for RssObjectResultList
      82                 :            :  */
      83                 :          1 : inline std::string to_string(::ad::rss::map::RssObjectResultList const &value)
      84                 :            : {
      85         [ +  - ]:          1 :   stringstream sstream;
      86         [ +  - ]:          1 :   sstream << value;
      87         [ +  - ]:          2 :   return sstream.str();
      88                 :          1 : }
      89                 :            : } // namespace std
      90                 :            : 
      91                 :            : /*!
      92                 :            :  * \brief overload of fmt::formatter calling std::to_string
      93                 :            :  */
      94                 :            : template <> struct fmt::formatter<::ad::rss::map::RssObjectResultList> : formatter<string_view>
      95                 :            : {
      96                 :          1 :   template <typename FormatContext> auto format(::ad::rss::map::RssObjectResultList const &value, FormatContext &ctx)
      97                 :            :   {
      98                 :          2 :     return formatter<string_view>::format(std::to_string(value), ctx);
      99                 :            :   }
     100                 :            : };
     101                 :            : 
     102                 :            : #endif // GEN_GUARD_VECTOR_AD_RSS_MAP_RSSOBJECTRESULT

Generated by: LCOV version 1.14