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 <cstdint> 21 : : #include <iostream> 22 : : #include <limits> 23 : : #include <memory> 24 : : #include <sstream> 25 : : #include "ad/map/point/ENUEdge.hpp" 26 : : /*! 27 : : * @brief namespace ad 28 : : */ 29 : : namespace ad { 30 : : /*! 31 : : * @brief namespace map 32 : : */ 33 : : namespace map { 34 : : /*! 35 : : * @brief namespace point 36 : : * 37 : : * Handling geographic positions in different coordinate systems 38 : : */ 39 : : namespace point { 40 : : 41 : : /*! 42 : : * \brief DataType ENUEdgeCache 43 : : */ 44 : 101945 : struct ENUEdgeCache 45 : : { 46 : : /*! 47 : : * \brief Smart pointer on ENUEdgeCache 48 : : */ 49 : : typedef std::shared_ptr<ENUEdgeCache> Ptr; 50 : : 51 : : /*! 52 : : * \brief Smart pointer on constant ENUEdgeCache 53 : : */ 54 : : typedef std::shared_ptr<ENUEdgeCache const> ConstPtr; 55 : : 56 : : /*! 57 : : * \brief standard constructor 58 : : */ 59 : 231889 : ENUEdgeCache() = default; 60 : : 61 : : /*! 62 : : * \brief standard destructor 63 : : */ 64 : 726675 : ~ENUEdgeCache() = default; 65 : : 66 : : /*! 67 : : * \brief standard copy constructor 68 : : */ 69 : 494781 : ENUEdgeCache(const ENUEdgeCache &other) = default; 70 : : 71 : : /*! 72 : : * \brief standard move constructor 73 : : */ 74 : 5 : ENUEdgeCache(ENUEdgeCache &&other) = default; 75 : : 76 : : /** 77 : : * \brief standard assignment operator 78 : : * 79 : : * \param[in] other Other ENUEdgeCache 80 : : * 81 : : * \returns Reference to this ENUEdgeCache. 82 : : */ 83 : : ENUEdgeCache &operator=(const ENUEdgeCache &other) = default; 84 : : 85 : : /** 86 : : * \brief standard move operator 87 : : * 88 : : * \param[in] other Other ENUEdgeCache 89 : : * 90 : : * \returns Reference to this ENUEdgeCache. 91 : : */ 92 : : ENUEdgeCache &operator=(ENUEdgeCache &&other) = default; 93 : : 94 : : /** 95 : : * \brief standard comparison operator 96 : : * 97 : : * \param[in] other Other ENUEdgeCache 98 : : * 99 : : * \returns \c true if both ENUEdgeCache are equal 100 : : */ 101 : 73 : bool operator==(const ENUEdgeCache &other) const 102 : : { 103 [ + + + + ]: 73 : return (enuEdge == other.enuEdge) && (enuVersion == other.enuVersion); 104 : : } 105 : : 106 : : /** 107 : : * \brief standard comparison operator 108 : : * 109 : : * \param[in] other Other ENUEdgeCache. 110 : : * 111 : : * \returns \c true if both ENUEdgeCache are different 112 : : */ 113 : 3 : bool operator!=(const ENUEdgeCache &other) const 114 : : { 115 : 3 : return !operator==(other); 116 : : } 117 : : 118 : : ::ad::map::point::ENUEdge enuEdge; 119 : : uint64_t enuVersion{0}; 120 : : }; 121 : : 122 : : } // namespace point 123 : : } // namespace map 124 : : } // namespace ad 125 : : 126 : : /*! 127 : : * \brief protect the definition of functions from duplicates by typedef usage within other data types 128 : : */ 129 : : #ifndef GEN_GUARD_AD_MAP_POINT_ENUEDGECACHE 130 : : #define GEN_GUARD_AD_MAP_POINT_ENUEDGECACHE 131 : : /*! 132 : : * @brief namespace ad 133 : : */ 134 : : namespace ad { 135 : : /*! 136 : : * @brief namespace map 137 : : */ 138 : : namespace map { 139 : : /*! 140 : : * @brief namespace point 141 : : * 142 : : * Handling geographic positions in different coordinate systems 143 : : */ 144 : : namespace point { 145 : : 146 : : /** 147 : : * \brief standard ostream operator 148 : : * 149 : : * \param[in] os The output stream to write to 150 : : * \param[in] _value ENUEdgeCache value 151 : : * 152 : : * \returns The stream object. 153 : : * 154 : : */ 155 : 71 : inline std::ostream &operator<<(std::ostream &os, ENUEdgeCache const &_value) 156 : : { 157 : 71 : os << "ENUEdgeCache("; 158 : 71 : os << "enuEdge:"; 159 : 71 : os << _value.enuEdge; 160 : 71 : os << ","; 161 : 71 : os << "enuVersion:"; 162 : 71 : os << _value.enuVersion; 163 : 71 : os << ")"; 164 : 71 : return os; 165 : : } 166 : : 167 : : } // namespace point 168 : : } // namespace map 169 : : } // namespace ad 170 : : 171 : : namespace std { 172 : : /*! 173 : : * \brief overload of the std::to_string for ENUEdgeCache 174 : : */ 175 : 1 : inline std::string to_string(::ad::map::point::ENUEdgeCache const &value) 176 : : { 177 [ + - ]: 2 : stringstream sstream; 178 [ + - ]: 1 : sstream << value; 179 [ + - ]: 2 : return sstream.str(); 180 : : } 181 : : } // namespace std 182 : : #endif // GEN_GUARD_AD_MAP_POINT_ENUEDGECACHE