LCOV - code coverage report
Current view: top level - generated/include/ad/rss/core - RelativeConstellationVector.hpp (source / functions) Hit Total Coverage
Test: ad_rss Lines: 7 15 46.7 %
Date: 2025-07-22 06:53:46 Functions: 1 3 33.3 %
Branches: 4 14 28.6 %

           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/core/RelativeConstellation.hpp"
      24                 :            : /*!
      25                 :            :  * @brief namespace ad
      26                 :            :  */
      27                 :            : namespace ad {
      28                 :            : /*!
      29                 :            :  * @brief namespace rss
      30                 :            :  */
      31                 :            : namespace rss {
      32                 :            : /*!
      33                 :            :  * @brief namespace core
      34                 :            :  */
      35                 :            : namespace core {
      36                 :            : 
      37                 :            : /*!
      38                 :            :  * \brief DataType RelativeConstellationVector
      39                 :            :  *
      40                 :            :  * A vector of constellations within their constellation specific lane coordinate system.
      41                 :            :  */
      42                 :            : typedef std::vector<::ad::rss::core::RelativeConstellation> RelativeConstellationVector;
      43                 :            : 
      44                 :            : } // namespace core
      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_CORE_RELATIVECONSTELLATION
      52                 :            : #define GEN_GUARD_VECTOR_AD_RSS_CORE_RELATIVECONSTELLATION
      53                 :            : namespace std {
      54                 :            : /**
      55                 :            :  * \brief standard ostream operator
      56                 :            :  *
      57                 :            :  * \param[in] os The output stream to write to
      58                 :            :  * \param[in] _value RelativeConstellationVector value
      59                 :            :  *
      60                 :            :  * \returns The stream object.
      61                 :            :  *
      62                 :            :  */
      63                 :          3 : inline std::ostream &operator<<(std::ostream &os, vector<::ad::rss::core::RelativeConstellation> const &_value)
      64                 :            : {
      65                 :          3 :   os << "[";
      66         [ +  + ]:          5 :   for (auto it = _value.begin(); it != _value.end(); it++)
      67                 :            :   {
      68         [ -  + ]:          2 :     if (it != _value.begin())
      69                 :            :     {
      70         [ #  # ]:          0 :       os << ",";
      71                 :            :     }
      72         [ +  - ]:          2 :     os << *it;
      73                 :            :   }
      74                 :          3 :   os << "]";
      75                 :          3 :   return os;
      76                 :            : }
      77                 :            : } // namespace std
      78                 :            : 
      79                 :            : namespace std {
      80                 :            : /*!
      81                 :            :  * \brief overload of the std::to_string for RelativeConstellationVector
      82                 :            :  */
      83                 :          0 : inline std::string to_string(::ad::rss::core::RelativeConstellationVector const &value)
      84                 :            : {
      85         [ #  # ]:          0 :   stringstream sstream;
      86         [ #  # ]:          0 :   sstream << value;
      87         [ #  # ]:          0 :   return sstream.str();
      88                 :          0 : }
      89                 :            : } // namespace std
      90                 :            : 
      91                 :            : /*!
      92                 :            :  * \brief overload of fmt::formatter calling std::to_string
      93                 :            :  */
      94                 :            : template <> struct fmt::formatter<::ad::rss::core::RelativeConstellationVector> : formatter<string_view>
      95                 :            : {
      96                 :            :   template <typename FormatContext>
      97                 :          0 :   auto format(::ad::rss::core::RelativeConstellationVector const &value, FormatContext &ctx)
      98                 :            :   {
      99                 :          0 :     return formatter<string_view>::format(std::to_string(value), ctx);
     100                 :            :   }
     101                 :            : };
     102                 :            : 
     103                 :            : #endif // GEN_GUARD_VECTOR_AD_RSS_CORE_RELATIVECONSTELLATION

Generated by: LCOV version 1.14