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 <limits> 22 : : #include <memory> 23 : : #include <sstream> 24 : : #include "ad/map/point/ENUHeading.hpp" 25 : : #include "ad/map/point/ENUPoint.hpp" 26 : : #include "ad/map/point/GeoPoint.hpp" 27 : : #include "ad/physics/Dimension3D.hpp" 28 : : /*! 29 : : * @brief namespace ad 30 : : */ 31 : : namespace ad { 32 : : /*! 33 : : * @brief namespace map 34 : : */ 35 : : namespace map { 36 : : /*! 37 : : * @brief namespace match 38 : : * 39 : : * Map matching 40 : : */ 41 : : namespace match { 42 : : 43 : : /*! 44 : : * \brief DataType ENUObjectPosition 45 : : */ 46 : : struct ENUObjectPosition 47 : : { 48 : : /*! 49 : : * \brief Smart pointer on ENUObjectPosition 50 : : */ 51 : : typedef std::shared_ptr<ENUObjectPosition> Ptr; 52 : : 53 : : /*! 54 : : * \brief Smart pointer on constant ENUObjectPosition 55 : : */ 56 : : typedef std::shared_ptr<ENUObjectPosition const> ConstPtr; 57 : : 58 : : /*! 59 : : * \brief standard constructor 60 : : */ 61 : 93 : ENUObjectPosition() = default; 62 : : 63 : : /*! 64 : : * \brief standard destructor 65 : : */ 66 : : ~ENUObjectPosition() = default; 67 : : 68 : : /*! 69 : : * \brief standard copy constructor 70 : : */ 71 : : ENUObjectPosition(const ENUObjectPosition &other) = default; 72 : : 73 : : /*! 74 : : * \brief standard move constructor 75 : : */ 76 : : ENUObjectPosition(ENUObjectPosition &&other) = default; 77 : : 78 : : /** 79 : : * \brief standard assignment operator 80 : : * 81 : : * \param[in] other Other ENUObjectPosition 82 : : * 83 : : * \returns Reference to this ENUObjectPosition. 84 : : */ 85 : : ENUObjectPosition &operator=(const ENUObjectPosition &other) = default; 86 : : 87 : : /** 88 : : * \brief standard move operator 89 : : * 90 : : * \param[in] other Other ENUObjectPosition 91 : : * 92 : : * \returns Reference to this ENUObjectPosition. 93 : : */ 94 : : ENUObjectPosition &operator=(ENUObjectPosition &&other) = default; 95 : : 96 : : /** 97 : : * \brief standard comparison operator 98 : : * 99 : : * \param[in] other Other ENUObjectPosition 100 : : * 101 : : * \returns \c true if both ENUObjectPosition are equal 102 : : */ 103 : 24 : bool operator==(const ENUObjectPosition &other) const 104 : : { 105 [ + + ]: 44 : return (centerPoint == other.centerPoint) && (heading == other.heading) 106 [ + + + + : 44 : && (enuReferencePoint == other.enuReferencePoint) && (dimension == other.dimension); + + ] 107 : : } 108 : : 109 : : /** 110 : : * \brief standard comparison operator 111 : : * 112 : : * \param[in] other Other ENUObjectPosition. 113 : : * 114 : : * \returns \c true if both ENUObjectPosition are different 115 : : */ 116 : 5 : bool operator!=(const ENUObjectPosition &other) const 117 : : { 118 : 5 : return !operator==(other); 119 : : } 120 : : 121 : : /*! 122 : : * 3D position in ENU coordinates 123 : : */ 124 : : ::ad::map::point::ENUPoint centerPoint; 125 : : 126 : : /*! 127 : : * Angle in ENU coordinate system as angle measured from East to North axis (yaw) in radians. 128 : : */ 129 : : ::ad::map::point::ENUHeading heading{std::numeric_limits<double>::quiet_NaN()}; 130 : : 131 : : /*! 132 : : * GNSS coordinate of the coordinate system origin / reference frame 133 : : */ 134 : : ::ad::map::point::GeoPoint enuReferencePoint; 135 : : 136 : : /*! 137 : : * 3D dimension of the object 138 : : */ 139 : : ::ad::physics::Dimension3D dimension; 140 : : }; 141 : : 142 : : } // namespace match 143 : : } // namespace map 144 : : } // namespace ad 145 : : 146 : : /*! 147 : : * \brief protect the definition of functions from duplicates by typedef usage within other data types 148 : : */ 149 : : #ifndef GEN_GUARD_AD_MAP_MATCH_ENUOBJECTPOSITION 150 : : #define GEN_GUARD_AD_MAP_MATCH_ENUOBJECTPOSITION 151 : : /*! 152 : : * @brief namespace ad 153 : : */ 154 : : namespace ad { 155 : : /*! 156 : : * @brief namespace map 157 : : */ 158 : : namespace map { 159 : : /*! 160 : : * @brief namespace match 161 : : * 162 : : * Map matching 163 : : */ 164 : : namespace match { 165 : : 166 : : /** 167 : : * \brief standard ostream operator 168 : : * 169 : : * \param[in] os The output stream to write to 170 : : * \param[in] _value ENUObjectPosition value 171 : : * 172 : : * \returns The stream object. 173 : : * 174 : : */ 175 : 25 : inline std::ostream &operator<<(std::ostream &os, ENUObjectPosition const &_value) 176 : : { 177 : 25 : os << "ENUObjectPosition("; 178 : 25 : os << "centerPoint:"; 179 : 25 : os << _value.centerPoint; 180 : 25 : os << ","; 181 : 25 : os << "heading:"; 182 : 25 : os << _value.heading; 183 : 25 : os << ","; 184 : 25 : os << "enuReferencePoint:"; 185 : 25 : os << _value.enuReferencePoint; 186 : 25 : os << ","; 187 : 25 : os << "dimension:"; 188 : 25 : os << _value.dimension; 189 : 25 : os << ")"; 190 : 25 : return os; 191 : : } 192 : : 193 : : } // namespace match 194 : : } // namespace map 195 : : } // namespace ad 196 : : 197 : : namespace std { 198 : : /*! 199 : : * \brief overload of the std::to_string for ENUObjectPosition 200 : : */ 201 : 1 : inline std::string to_string(::ad::map::match::ENUObjectPosition const &value) 202 : : { 203 [ + - ]: 2 : stringstream sstream; 204 [ + - ]: 1 : sstream << value; 205 [ + - ]: 2 : return sstream.str(); 206 : : } 207 : : } // namespace std 208 : : #endif // GEN_GUARD_AD_MAP_MATCH_ENUOBJECTPOSITION