uatlib
|
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 & |
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).
|
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.