|
HikoGUI
A low latency retained GUI
|
#include <hikogui/bound_integer.hpp>
Public Types | |
| using | bound_type = interval<longreg_t> |
| using | value_type |
| The type that can hold the value of the bound integer. | |
| using | calculation_type |
| The type that is used as a temporary during calculation. | |
Public Member Functions | |
| constexpr | bound_integer (bound_integer const &) noexcept=default |
| constexpr | bound_integer (bound_integer &&) noexcept=default |
| constexpr bound_integer & | operator= (bound_integer const &) noexcept=default |
| constexpr bound_integer & | operator= (bound_integer &&) noexcept=default |
| constexpr | bound_integer (numeric_limited auto other) noexcept(bounds.range_contains_type< decltype(other)>()) |
| constexpr bound_integer & | operator= (numeric_limited auto other) noexcept(bounds.range_contains_type< decltype(other)>()) |
| template<bound_type OtherBound> | |
| constexpr | bound_integer (bound_integer< OtherBound > other) noexcept(OtherBound.is_fully_inside(bounds)) |
| template<bound_type OtherBound> | |
| constexpr bound_integer & | operator= (bound_integer< OtherBound > other) noexcept(OtherBound.is_fully_inside(bounds)) |
| template<numeric_integral T> | |
| constexpr | operator T () noexcept(values_between_bounds_fit_in_type_v< T >) |
| constexpr | operator bool () noexcept |
| constexpr bool | holds_invariant () noexcept |
| auto | operator- () const noexcept |
| template<bound_type RHSBounds> | |
| constexpr bool | operator== (bound_integer< RHSBounds > const &rhs) noexcept |
| Compare equality of two integers. | |
| template<bound_type RHSBounds> | |
| constexpr std::strong_ordering | operator<=> (bound_integer< RHSBounds > const &rhs) noexcept |
| Compare two integers. | |
| template<bound_type RHSBounds> | |
| constexpr auto | operator+ (bound_integer< RHSBounds > const &rhs) noexcept |
| template<bound_type RHSBounds> | |
| constexpr auto | operator- (bound_integer< RHSBounds > const &rhs) noexcept |
| template<bound_type RHSBounds> | |
| constexpr auto | operator* (bound_integer< RHSBounds > const &rhs) noexcept |
| template<bound_type RHSBounds> | |
| constexpr auto | operator/ (bound_integer< RHSBounds > const &rhs) noexcept(0 !=RHSBounds) |
| template<bound_type RHSBounds> | |
| constexpr auto | operator% (bound_integer< RHSBounds > const &rhs) noexcept(0 !=RHSBounds) |
Static Public Member Functions | |
| static constexpr bound_integer | make_without_check (numeric_limited auto other) noexcept |
Data Fields | |
| value_type | value |
| The value of the integer. | |
Static Public Attributes | |
| static constexpr bound_type | bounds = Bounds |
Bound integer.
| using v1::bound_integer< Bounds >::calculation_type |
The type that is used as a temporary during calculation.
| using v1::bound_integer< Bounds >::value_type |
The type that can hold the value of the bound integer.
|
inlineconstexprnoexcept |
Compare two integers.
|
inlineconstexprnoexcept |
Compare equality of two integers.
| value_type v1::bound_integer< Bounds >::value |
The value of the integer.