Files
pilotclient/src/blackmisc/weather/temperaturelayerlist.cpp
2016-01-28 01:35:53 +01:00

34 lines
1.1 KiB
C++

/* Copyright (C) 2016
* swift project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
* including this file, may be copied, modified, propagated, or distributed except according to the terms
* contained in the LICENSE file.
*/
#include "temperaturelayerlist.h"
using namespace BlackMisc::Aviation;
namespace BlackMisc
{
namespace Weather
{
CTemperatureLayerList::CTemperatureLayerList(const CSequence<CTemperatureLayer> &other) :
CSequence<CTemperatureLayer>(other)
{ }
bool CTemperatureLayerList::containsLevel(const CAltitude &level) const
{
return contains(&CTemperatureLayer::getLevel, level);
}
CTemperatureLayer CTemperatureLayerList::findByLevel(const CAltitude &level) const
{
return findFirstByOrDefault(&CTemperatureLayer::getLevel, level);
}
} // namespace
} // namespace