uatlib
Public Member Functions | List of all members
uat::region_view Class Reference

A non-owning wrapper to an atomic region in the airspace. More...

#include <permit.hpp>

Public Member Functions

template<region_compatible R>
 region_view (const R &a)
 Constructs a non-owning wrapper to a region that satisfies the region_compatible concept.
 
 region_view (const region_view &)=default
 
 region_view (region_view &&) noexcept=default
 
auto operator= (const region_view &) -> region_view &=default
 
auto operator= (region_view &&) noexcept -> region_view &=default
 
template<region_compatible R>
auto downcast () const -> const R &
 

Detailed Description

A non-owning wrapper to an atomic region in the airspace.

Any object that satisfies region_compatible can be used to construct a region_view. No modifications are allowed to the region through the view (const semantics).

Member Function Documentation

◆ downcast()

template<region_compatible R>
auto uat::region_view::downcast ( ) const -> const R&
inline

Downcast the region view to its original type.

Type R must be the original type used to construct the region. Otherwise, behavior is undefined.


The documentation for this class was generated from the following file: