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