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/ParametricValue.hpp" 24 : : /*! 25 : : * @brief namespace ad 26 : : */ 27 : : namespace ad { 28 : : /*! 29 : : * @brief namespace physics 30 : : */ 31 : : namespace physics { 32 : : 33 : : /*! 34 : : * \brief DataType ParametricValueList 35 : : * 36 : : * List of ParametricValue 37 : : */ 38 : : typedef std::vector<::ad::physics::ParametricValue> ParametricValueList; 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_PARAMETRICVALUE 47 : : #define GEN_GUARD_VECTOR_AD_PHYSICS_PARAMETRICVALUE 48 : : namespace std { 49 : : /** 50 : : * \brief standard ostream operator 51 : : * 52 : : * \param[in] os The output stream to write to 53 : : * \param[in] _value ParametricValueList value 54 : : * 55 : : * \returns The stream object. 56 : : * 57 : : */ 58 : 2 : inline std::ostream &operator<<(std::ostream &os, vector<::ad::physics::ParametricValue> 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 ParametricValueList 77 : : */ 78 : : inline std::string to_string(::ad::physics::ParametricValueList const &value) 79 : : { 80 : : stringstream sstream; 81 : : sstream << value; 82 : : return sstream.str(); 83 : : } 84 : : } // namespace std 85 : : #endif // GEN_GUARD_VECTOR_AD_PHYSICS_PARAMETRICVALUE