ad_rss
generated
include
ad
rss
world
OccupiedRegionValidInputRange.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: LGPL-2.1-only
7
*
8
* ----------------- END LICENSE BLOCK -----------------------------------
9
*/
10
18
#pragma once
19
20
#include <cmath>
21
#include <limits>
22
#include "ad/physics/ParametricRangeValidInputRange.hpp"
23
#include "
ad/rss/world/OccupiedRegion.hpp
"
24
#include "spdlog/fmt/ostr.h"
25
#include "spdlog/spdlog.h"
26
37
inline
bool
withinValidInputRange
(::
ad::rss::world::OccupiedRegion
const
&input,
bool
const
logErrors =
true
)
38
{
39
// check for generic member input ranges
40
bool
inValidInputRange =
true
;
41
inValidInputRange
42
=
withinValidInputRange
(input.
lonRange
, logErrors) &&
withinValidInputRange
(input.
latRange
, logErrors);
43
if
(!inValidInputRange && logErrors)
44
{
45
spdlog::error(
"withinValidInputRange(::ad::rss::world::OccupiedRegion)>> {} has invalid member"
,
46
input);
// LCOV_EXCL_BR_LINE
47
}
48
49
return
inValidInputRange;
50
}
ad::rss::world::OccupiedRegion
DataType OccupiedRegion.
Definition:
OccupiedRegion.hpp:46
ad::rss::world::OccupiedRegion::latRange
::ad::physics::ParametricRange latRange
Definition:
OccupiedRegion.hpp:133
withinValidInputRange
bool withinValidInputRange(::ad::rss::world::OccupiedRegion const &input, bool const logErrors=true)
check if the given OccupiedRegion is within valid input range
Definition:
OccupiedRegionValidInputRange.hpp:37
OccupiedRegion.hpp
ad::rss::world::OccupiedRegion::lonRange
::ad::physics::ParametricRange lonRange
Definition:
OccupiedRegion.hpp:128
Generated by
1.8.17