LCOV - code coverage report
Current view: top level - generated/include/ad/rss/situation - SituationVector.hpp (source / functions) Hit Total Coverage
Test: ad_rss Lines: 8 8 100.0 %
Date: 2024-04-23 14:35:54 Functions: 1 1 100.0 %
Branches: 6 8 75.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: LGPL-2.1-only
       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/rss/situation/Situation.hpp"
      24                 :            : /*!
      25                 :            :  * @brief namespace ad
      26                 :            :  */
      27                 :            : namespace ad {
      28                 :            : /*!
      29                 :            :  * @brief namespace rss
      30                 :            :  */
      31                 :            : namespace rss {
      32                 :            : /*!
      33                 :            :  * @brief namespace situation
      34                 :            :  */
      35                 :            : namespace situation {
      36                 :            : 
      37                 :            : /*!
      38                 :            :  * \brief DataType SituationVector
      39                 :            :  *
      40                 :            :  * A vector of situations.
      41                 :            :  */
      42                 :            : typedef std::vector<::ad::rss::situation::Situation> SituationVector;
      43                 :            : 
      44                 :            : } // namespace situation
      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_SITUATION_SITUATION
      52                 :            : #define GEN_GUARD_VECTOR_AD_RSS_SITUATION_SITUATION
      53                 :            : namespace std {
      54                 :            : /**
      55                 :            :  * \brief standard ostream operator
      56                 :            :  *
      57                 :            :  * \param[in] os The output stream to write to
      58                 :            :  * \param[in] _value SituationVector value
      59                 :            :  *
      60                 :            :  * \returns The stream object.
      61                 :            :  *
      62                 :            :  */
      63                 :       1009 : inline std::ostream &operator<<(std::ostream &os, vector<::ad::rss::situation::Situation> const &_value)
      64                 :            : {
      65                 :       1009 :   os << "[";
      66         [ +  + ]:    1003050 :   for (auto it = _value.begin(); it != _value.end(); it++)
      67                 :            :   {
      68         [ +  + ]:    1002040 :     if (it != _value.begin())
      69                 :            :     {
      70         [ +  - ]:    1001030 :       os << ",";
      71                 :            :     }
      72         [ +  - ]:    1002040 :     os << *it;
      73                 :            :   }
      74                 :       1009 :   os << "]";
      75                 :       1009 :   return os;
      76                 :            : }
      77                 :            : } // namespace std
      78                 :            : 
      79                 :            : namespace std {
      80                 :            : /*!
      81                 :            :  * \brief overload of the std::to_string for SituationVector
      82                 :            :  */
      83                 :            : inline std::string to_string(::ad::rss::situation::SituationVector const &value)
      84                 :            : {
      85                 :            :   stringstream sstream;
      86                 :            :   sstream << value;
      87                 :            :   return sstream.str();
      88                 :            : }
      89                 :            : } // namespace std
      90                 :            : #endif // GEN_GUARD_VECTOR_AD_RSS_SITUATION_SITUATION

Generated by: LCOV version 1.14