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