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/map/lane/ContactType.hpp" 24 : : /*! 25 : : * @brief namespace ad 26 : : */ 27 : : namespace ad { 28 : : /*! 29 : : * @brief namespace map 30 : : */ 31 : : namespace map { 32 : : /*! 33 : : * @brief namespace lane 34 : : * 35 : : * Handling of lanes 36 : : */ 37 : : namespace lane { 38 : : 39 : : /*! 40 : : * \brief DataType ContactTypeList 41 : : * 42 : : * List of Contact Types 43 : : */ 44 : : typedef std::vector<::ad::map::lane::ContactType> ContactTypeList; 45 : : 46 : : } // namespace lane 47 : : } // namespace map 48 : : } // namespace ad 49 : : 50 : : /*! 51 : : * \brief protect the definition of functions from duplicates by typedef usage within other data types 52 : : */ 53 : : #ifndef GEN_GUARD_VECTOR_AD_MAP_LANE_CONTACTTYPE 54 : : #define GEN_GUARD_VECTOR_AD_MAP_LANE_CONTACTTYPE 55 : : namespace std { 56 : : /** 57 : : * \brief standard ostream operator 58 : : * 59 : : * \param[in] os The output stream to write to 60 : : * \param[in] _value ContactTypeList value 61 : : * 62 : : * \returns The stream object. 63 : : * 64 : : */ 65 : 29 : inline std::ostream &operator<<(std::ostream &os, vector<::ad::map::lane::ContactType> const &_value) 66 : : { 67 : 29 : os << "["; 68 [ + + ]: 54 : for (auto it = _value.begin(); it != _value.end(); it++) 69 : : { 70 [ - + ]: 25 : if (it != _value.begin()) 71 : : { 72 [ # # ]: 0 : os << ","; 73 : : } 74 [ + - ]: 25 : os << *it; 75 : : } 76 : 29 : os << "]"; 77 : 29 : return os; 78 : : } 79 : : } // namespace std 80 : : 81 : : namespace std { 82 : : /*! 83 : : * \brief overload of the std::to_string for ContactTypeList 84 : : */ 85 : : inline std::string to_string(::ad::map::lane::ContactTypeList const &value) 86 : : { 87 : : stringstream sstream; 88 : : sstream << value; 89 : : return sstream.str(); 90 : : } 91 : : } // namespace std 92 : : #endif // GEN_GUARD_VECTOR_AD_MAP_LANE_CONTACTTYPE