ad_map_access
generated
include
ad
map
lane
GeoBorderListValidInputRange.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 <cmath>
21
#include <limits>
22
#include "
ad/map/lane/GeoBorderList.hpp
"
23
#include "
ad/map/lane/GeoBorderValidInputRange.hpp
"
24
#include "spdlog/fmt/ostr.h"
25
#include "spdlog/spdlog.h"
26
39
inline
bool
withinValidInputRange
(::
ad::map::lane::GeoBorderList
const
&input,
bool
const
logErrors =
true
)
40
{
41
bool
inValidInputRange =
true
;
42
43
if
(inValidInputRange)
44
{
45
for
(
auto
const
&member : input)
46
{
47
bool
memberInValidInputRange =
withinValidInputRange
(member, logErrors);
48
inValidInputRange = inValidInputRange && memberInValidInputRange;
49
if
(!memberInValidInputRange && logErrors)
50
{
51
spdlog::error(
"withinValidInputRange(::ad::map::lane::GeoBorderList)>> {}, invalid member {}"
,
52
input,
53
member);
// LCOV_EXCL_BR_LINE
54
}
55
}
56
}
57
return
inValidInputRange;
58
}
GeoBorderList.hpp
GeoBorderValidInputRange.hpp
ad::map::lane::GeoBorderList
std::vector<::ad::map::lane::GeoBorder > GeoBorderList
DataType GeoBorderList.
Definition:
GeoBorderList.hpp:44
withinValidInputRange
bool withinValidInputRange(::ad::map::lane::GeoBorderList const &input, bool const logErrors=true)
check if the given GeoBorderList is within valid input range
Definition:
GeoBorderListValidInputRange.hpp:39
Generated by
1.8.17