ad_rss_map_integration
generated
include
ad
rss
map
RssVehicleRestrictions.hpp
Go to the documentation of this file.
1
/*
2
* ----------------- BEGIN LICENSE BLOCK ---------------------------------
3
*
4
* Copyright (C) 2018-2022 Intel Corporation
5
*
6
* SPDX-License-Identifier: LGPL-2.1-only
7
*
8
* ----------------- END LICENSE BLOCK -----------------------------------
9
*/
10
18
#pragma once
19
20
#include <iostream>
21
#include <memory>
22
#include <sstream>
23
#include "
ad/rss/map/RouteAccelerations.hpp
"
24
#include "
ad/rss/map/RssVehicleAccelerationRestrictions.hpp
"
28
namespace
ad
{
32
namespace
rss {
36
namespace
map {
37
43
struct
RssVehicleRestrictions
44
{
48
typedef
std::shared_ptr<RssVehicleRestrictions>
Ptr
;
49
53
typedef
std::shared_ptr<RssVehicleRestrictions const>
ConstPtr
;
54
58
RssVehicleRestrictions
() =
default
;
59
63
~RssVehicleRestrictions
() =
default
;
64
68
RssVehicleRestrictions
(
const
RssVehicleRestrictions
&other) =
default
;
69
73
RssVehicleRestrictions
(
RssVehicleRestrictions
&&other) =
default
;
74
82
RssVehicleRestrictions
&
operator=
(
const
RssVehicleRestrictions
&other) =
default
;
83
91
RssVehicleRestrictions
&
operator=
(
RssVehicleRestrictions
&&other) =
default
;
92
100
bool
operator==
(
const
RssVehicleRestrictions
&other)
const
101
{
102
return
(
route_accelerations
== other.
route_accelerations
)
103
&& (
vehicle_acceleration_restrictions
== other.
vehicle_acceleration_restrictions
);
104
}
105
113
bool
operator!=
(
const
RssVehicleRestrictions
&other)
const
114
{
115
return
!
operator==
(other);
116
}
117
121
::ad::rss::map::RouteAccelerations
route_accelerations
;
122
126
::ad::rss::map::RssVehicleAccelerationRestrictions
vehicle_acceleration_restrictions
;
127
};
128
129
}
// namespace map
130
}
// namespace rss
131
}
// namespace ad
132
136
#ifndef GEN_GUARD_AD_RSS_MAP_RSSVEHICLERESTRICTIONS
137
#define GEN_GUARD_AD_RSS_MAP_RSSVEHICLERESTRICTIONS
141
namespace
ad
{
145
namespace
rss {
149
namespace
map {
150
160
inline
std::ostream &
operator<<
(std::ostream &os,
RssVehicleRestrictions
const
&_value)
161
{
162
os <<
"RssVehicleRestrictions("
;
163
os <<
"route_accelerations:"
;
164
os << _value.
route_accelerations
;
165
os <<
","
;
166
os <<
"vehicle_acceleration_restrictions:"
;
167
os << _value.
vehicle_acceleration_restrictions
;
168
os <<
")"
;
169
return
os;
170
}
171
172
}
// namespace map
173
}
// namespace rss
174
}
// namespace ad
175
176
namespace
std {
180
inline
std::string
to_string
(::
ad::rss::map::RssVehicleRestrictions
const
&value)
181
{
182
stringstream sstream;
183
sstream << value;
184
return
sstream.str();
185
}
186
}
// namespace std
187
191
template
<>
struct
fmt::formatter<::
ad::rss::map::RssVehicleRestrictions
> : formatter<string_view>
192
{
193
template
<
typename
FormatContext>
auto
format(::
ad::rss::map::RssVehicleRestrictions
const
&value, FormatContext &ctx)
194
{
195
return
formatter<string_view>::format(std::to_string(value), ctx);
196
}
197
};
198
199
#endif
// GEN_GUARD_AD_RSS_MAP_RSSVEHICLERESTRICTIONS
RouteAccelerations.hpp
std::to_string
std::string to_string(::ad::rss::map::RouteAccelerations const &value)
overload of the std::to_string for RouteAccelerations
Definition:
RouteAccelerations.hpp:229
RssVehicleAccelerationRestrictions.hpp
ad::rss::map::operator<<
std::ostream & operator<<(std::ostream &os, RouteAccelerations const &_value)
standard ostream operator
Definition:
RouteAccelerations.hpp:194
ad
namespace ad
Definition:
RouteAccelerations.hpp:33
ad::rss::map::RouteAccelerations
DataType RouteAccelerations.
Definition:
RouteAccelerations.hpp:49
ad::rss::map::RssVehicleAccelerationRestrictions
DataType RssVehicleAccelerationRestrictions.
Definition:
RssVehicleAccelerationRestrictions.hpp:41
ad::rss::map::RssVehicleRestrictions
DataType RssVehicleRestrictions.
Definition:
RssVehicleRestrictions.hpp:44
ad::rss::map::RssVehicleRestrictions::ConstPtr
std::shared_ptr< RssVehicleRestrictions const > ConstPtr
Smart pointer on constant RssVehicleRestrictions.
Definition:
RssVehicleRestrictions.hpp:53
ad::rss::map::RssVehicleRestrictions::route_accelerations
::ad::rss::map::RouteAccelerations route_accelerations
Definition:
RssVehicleRestrictions.hpp:121
ad::rss::map::RssVehicleRestrictions::RssVehicleRestrictions
RssVehicleRestrictions()=default
standard constructor
ad::rss::map::RssVehicleRestrictions::operator!=
bool operator!=(const RssVehicleRestrictions &other) const
standard comparison operator
Definition:
RssVehicleRestrictions.hpp:113
ad::rss::map::RssVehicleRestrictions::operator==
bool operator==(const RssVehicleRestrictions &other) const
standard comparison operator
Definition:
RssVehicleRestrictions.hpp:100
ad::rss::map::RssVehicleRestrictions::operator=
RssVehicleRestrictions & operator=(RssVehicleRestrictions &&other)=default
standard move operator
ad::rss::map::RssVehicleRestrictions::RssVehicleRestrictions
RssVehicleRestrictions(RssVehicleRestrictions &&other)=default
standard move constructor
ad::rss::map::RssVehicleRestrictions::operator=
RssVehicleRestrictions & operator=(const RssVehicleRestrictions &other)=default
standard assignment operator
ad::rss::map::RssVehicleRestrictions::Ptr
std::shared_ptr< RssVehicleRestrictions > Ptr
Smart pointer on RssVehicleRestrictions.
Definition:
RssVehicleRestrictions.hpp:48
ad::rss::map::RssVehicleRestrictions::~RssVehicleRestrictions
~RssVehicleRestrictions()=default
standard destructor
ad::rss::map::RssVehicleRestrictions::RssVehicleRestrictions
RssVehicleRestrictions(const RssVehicleRestrictions &other)=default
standard copy constructor
ad::rss::map::RssVehicleRestrictions::vehicle_acceleration_restrictions
::ad::rss::map::RssVehicleAccelerationRestrictions vehicle_acceleration_restrictions
Definition:
RssVehicleRestrictions.hpp:126
Generated by
1.9.1