ad_map_access
ENUBorder.hpp
Go to the documentation of this file.
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 
18 #pragma once
19 
20 #include <iostream>
21 #include <memory>
22 #include <sstream>
23 #include "ad/map/point/ENUEdge.hpp"
27 namespace ad {
31 namespace map {
37 namespace lane {
38 
44 struct ENUBorder
45 {
49  typedef std::shared_ptr<ENUBorder> Ptr;
50 
54  typedef std::shared_ptr<ENUBorder const> ConstPtr;
55 
59  ENUBorder() = default;
60 
64  ~ENUBorder() = default;
65 
69  ENUBorder(const ENUBorder &other) = default;
70 
74  ENUBorder(ENUBorder &&other) = default;
75 
83  ENUBorder &operator=(const ENUBorder &other) = default;
84 
92  ENUBorder &operator=(ENUBorder &&other) = default;
93 
101  bool operator==(const ENUBorder &other) const
102  {
103  return (left == other.left) && (right == other.right);
104  }
105 
113  bool operator!=(const ENUBorder &other) const
114  {
115  return !operator==(other);
116  }
117 
122 
127 };
128 
129 } // namespace lane
130 } // namespace map
131 } // namespace ad
132 
136 #ifndef GEN_GUARD_AD_MAP_LANE_ENUBORDER
137 #define GEN_GUARD_AD_MAP_LANE_ENUBORDER
138 
141 namespace ad {
145 namespace map {
151 namespace lane {
152 
162 inline std::ostream &operator<<(std::ostream &os, ENUBorder const &_value)
163 {
164  os << "ENUBorder(";
165  os << "left:";
166  os << _value.left;
167  os << ",";
168  os << "right:";
169  os << _value.right;
170  os << ")";
171  return os;
172 }
173 
174 } // namespace lane
175 } // namespace map
176 } // namespace ad
177 
178 namespace std {
182 inline std::string to_string(::ad::map::lane::ENUBorder const &value)
183 {
184  stringstream sstream;
185  sstream << value;
186  return sstream.str();
187 }
188 } // namespace std
189 #endif // GEN_GUARD_AD_MAP_LANE_ENUBORDER
ad::map::lane::ENUBorder::~ENUBorder
~ENUBorder()=default
standard destructor
ad
namespace ad
Definition: GeometryStoreItem.hpp:28
ad::map::lane::ENUBorder::left
::ad::map::point::ENUEdge left
Definition: ENUBorder.hpp:121
ad::map::lane::ENUBorder::operator==
bool operator==(const ENUBorder &other) const
standard comparison operator
Definition: ENUBorder.hpp:101
ENUEdge.hpp
std::to_string
std::string to_string(::ad::map::access::GeometryStoreItem const &value)
overload of the std::to_string for GeometryStoreItem
Definition: GeometryStoreItem.hpp:183
ad::map::lane::ENUBorder::operator=
ENUBorder & operator=(const ENUBorder &other)=default
standard assignment operator
ad::map::lane::ENUBorder::ENUBorder
ENUBorder()=default
standard constructor
ad::map::lane::operator<<
std::ostream & operator<<(std::ostream &os, ContactLane const &_value)
standard ostream operator
Definition: ContactLane.hpp:182
ad::map::lane::ENUBorder::ConstPtr
std::shared_ptr< ENUBorder const > ConstPtr
Smart pointer on constant ENUBorder.
Definition: ENUBorder.hpp:54
ad::map::lane::ENUBorder::Ptr
std::shared_ptr< ENUBorder > Ptr
Smart pointer on ENUBorder.
Definition: ENUBorder.hpp:49
ad::map::lane::ENUBorder::right
::ad::map::point::ENUEdge right
Definition: ENUBorder.hpp:126
ad::map::lane::ENUBorder
DataType ENUBorder.
Definition: ENUBorder.hpp:44
ad::map::lane::ENUBorder::operator!=
bool operator!=(const ENUBorder &other) const
standard comparison operator
Definition: ENUBorder.hpp:113
ad::map::point::ENUEdge
std::vector<::ad::map::point::ENUPoint > ENUEdge
DataType ENUEdge.
Definition: ENUEdge.hpp:42