本文整理汇总了C++中AirspaceWarningList类的典型用法代码示例。如果您正苦于以下问题:C++ AirspaceWarningList类的具体用法?C++ AirspaceWarningList怎么用?C++ AirspaceWarningList使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了AirspaceWarningList类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: predicate
void
MapItemListBuilder::AddVisibleAirspace(
const Airspaces &airspaces,
const ProtectedAirspaceWarningManager *warning_manager,
const AirspaceComputerSettings &computer_settings,
const AirspaceRendererSettings &renderer_settings,
const MoreData &basic, const DerivedInfo &calculated)
{
AirspaceWarningList warnings;
if (warning_manager != nullptr)
warnings.Fill(*warning_manager);
const AircraftState aircraft = ToAircraftState(basic, calculated);
AirspaceAtPointPredicate predicate(computer_settings, renderer_settings,
aircraft,
warnings, location);
for (const auto &i : airspaces.QueryWithinRange(location, 100)) {
if (list.full())
break;
const AbstractAirspace &airspace = i.GetAirspace();
if (predicate(airspace))
list.append(new AirspaceMapItem(airspace));
}
}
示例2: size
/**
* Return size of warning list
*
* @return Number of items in warning list
*/
AirspaceWarningList::size_type size() const {
return warnings.size();
}
示例3: end
gcc_pure
const_iterator end() const {
return warnings.end();
}
示例4: begin
gcc_pure
const_iterator begin() const {
return warnings.begin();
}
示例5: clear
/**
* Clear all warnings
*/
void clear() {
++serial;
warnings.clear();
}
示例6: empty
/**
* Test whether warning list is empty
*
* @return True if no warnings in list
*/
gcc_pure
bool empty() const {
return warnings.empty();
}
示例7: size
/**
* Return size of warning list
*
* @return Number of items in warning list
*/
size_t size() const {
return warnings.size();
}
示例8: clear
/**
* Clear all warnings
*/
void clear() {
warnings.clear();
}
示例9: clear
/**
* Clear all warnings
*/
void clear() {
m_warnings.clear();
}