swift
Loading...
Searching...
No Matches
windlayerlist.cpp
1// SPDX-FileCopyrightText: Copyright (C) 2016 swift Project Community / Contributors
2// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
8
9using namespace swift::misc::aviation;
10
11SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::weather, CWindLayer, CWindLayerList)
12
13namespace swift::misc::weather
14{
16
17 bool CWindLayerList::containsLevel(const CAltitude &level) const { return contains(&CWindLayer::getLevel, level); }
18
23
24} // namespace swift::misc::weather
auto findFirstByOrDefault(Predicate p, const Value &def) const
Definition range.h:70
Altitude as used in aviation, can be AGL or MSL altitude.
Definition altitude.h:52
Value object for a wind layer.
Definition windlayer.h:28
swift::misc::aviation::CAltitude getLevel() const
Get level.
Definition windlayer.h:51
CSequence()=default
Default constructor.
bool containsLevel(const swift::misc::aviation::CAltitude &level) const
Contains cloud layer with level?
CWindLayerList()=default
Default constructor.
CWindLayer findByLevel(const swift::misc::aviation::CAltitude &level) const
Find cloud layer by level.
#define SWIFT_DEFINE_SEQUENCE_MIXINS(Namespace, T, List)
Explicit template definition of mixins for a CSequence subclass.
Definition sequence.h:63