LCOV - code coverage report
Current view: top level - generated/include/ad/physics - DurationList.hpp (source / functions) Hit Total Coverage
Test: ad_physics Lines: 7 8 87.5 %
Date: 2022-10-04 09:47:07 Functions: 1 1 100.0 %
Branches: 4 8 50.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: 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/physics/Duration.hpp"
      24                 :            : /*!
      25                 :            :  * @brief namespace ad
      26                 :            :  */
      27                 :            : namespace ad {
      28                 :            : /*!
      29                 :            :  * @brief namespace physics
      30                 :            :  */
      31                 :            : namespace physics {
      32                 :            : 
      33                 :            : /*!
      34                 :            :  * \brief DataType DurationList
      35                 :            :  *
      36                 :            :  * List of Duration
      37                 :            :  */
      38                 :            : typedef std::vector<::ad::physics::Duration> DurationList;
      39                 :            : 
      40                 :            : } // namespace physics
      41                 :            : } // namespace ad
      42                 :            : 
      43                 :            : /*!
      44                 :            :  * \brief protect the definition of functions from duplicates by typedef usage within other data types
      45                 :            :  */
      46                 :            : #ifndef GEN_GUARD_VECTOR_AD_PHYSICS_DURATION
      47                 :            : #define GEN_GUARD_VECTOR_AD_PHYSICS_DURATION
      48                 :            : namespace std {
      49                 :            : /**
      50                 :            :  * \brief standard ostream operator
      51                 :            :  *
      52                 :            :  * \param[in] os The output stream to write to
      53                 :            :  * \param[in] _value DurationList value
      54                 :            :  *
      55                 :            :  * \returns The stream object.
      56                 :            :  *
      57                 :            :  */
      58                 :          2 : inline std::ostream &operator<<(std::ostream &os, vector<::ad::physics::Duration> const &_value)
      59                 :            : {
      60                 :          2 :   os << "[";
      61         [ +  + ]:          3 :   for (auto it = _value.begin(); it != _value.end(); it++)
      62                 :            :   {
      63         [ -  + ]:          1 :     if (it != _value.begin())
      64                 :            :     {
      65         [ #  # ]:          0 :       os << ",";
      66                 :            :     }
      67         [ +  - ]:          1 :     os << *it;
      68                 :            :   }
      69                 :          2 :   os << "]";
      70                 :          2 :   return os;
      71                 :            : }
      72                 :            : } // namespace std
      73                 :            : 
      74                 :            : namespace std {
      75                 :            : /*!
      76                 :            :  * \brief overload of the std::to_string for DurationList
      77                 :            :  */
      78                 :            : inline std::string to_string(::ad::physics::DurationList const &value)
      79                 :            : {
      80                 :            :   stringstream sstream;
      81                 :            :   sstream << value;
      82                 :            :   return sstream.str();
      83                 :            : }
      84                 :            : } // namespace std
      85                 :            : #endif // GEN_GUARD_VECTOR_AD_PHYSICS_DURATION

Generated by: LCOV version 1.14