Definition at line 40 of file range_types.hpp.
Public Types | |
| using | OptionalValue = std::optional<T> |
Public Member Functions | |
| Range ()=default | |
| Empty range. | |
| Range (UnboundedType, UnboundedType) noexcept | |
| Unbounded range. | |
| template<typename U, typename = std::enable_if_t<std::is_convertible_v<std::decay_t<U>, T>>> | |
| Range (U &&lower, U &&upper, RangeBounds bounds=RangeBound::kLower) | |
| Bounded range. | |
| template<typename U, typename = std::enable_if_t<std::is_convertible_v<std::decay_t<U>, T>>> | |
| Range (U &&lower, UnboundedType ub, RangeBounds bounds=RangeBound::kLower) noexcept(kNothrowValueCopy) | |
| Range with a lower bound. | |
| template<typename U, typename = std::enable_if_t<std::is_convertible_v<std::decay_t<U>, T>>> | |
| Range (UnboundedType ub, U &&upper, RangeBounds bounds=RangeBound::kNone) noexcept(kNothrowValueCopy) | |
| Range with an upper bound. | |
| Range (const OptionalValue &lower, const OptionalValue &upper, RangeBounds bounds) | |
| template<typename U, typename = std::enable_if_t<std::is_convertible_v<U, T>>> | |
| Range (const Range< U > &rhs) | |
| bool | operator== (const Range &rhs) const |
| bool | operator!= (const Range &rhs) const |
| bool | Empty () const |
| void | Clear () |
| Make the range empty. | |
| bool | HasLowerBound () const |
| bool | HasUpperBound () const |
| const OptionalValue & | GetLowerBound () const |
| Get the lower bound. | |
| const OptionalValue & | GetUpperBound () const |
| Get the upper bound. | |
| bool | IsLowerBoundIncluded () const |
| bool | IsUpperBoundIncluded () const |
| using storages::postgres::Range< T >::OptionalValue = std::optional<T> |
Definition at line 47 of file range_types.hpp.
|
inlinenoexcept |
Unbounded range.
Definition at line 53 of file range_types.hpp.
| storages::postgres::Range< T >::Range | ( | U && | lower, |
| U && | upper, | ||
| RangeBounds | bounds = RangeBound::kLower ) |
Bounded range.
Definition at line 420 of file range_types.hpp.
|
noexcept |
Range with a lower bound.
Definition at line 430 of file range_types.hpp.
|
noexcept |
Range with an upper bound.
Definition at line 435 of file range_types.hpp.
| storages::postgres::Range< T >::Range | ( | const OptionalValue & | lower, |
| const OptionalValue & | upper, | ||
| RangeBounds | bounds ) |
Definition at line 439 of file range_types.hpp.
| storages::postgres::Range< T >::Range | ( | const Range< U > & | rhs | ) |
Convert from a range of different type.
Intentionally implicit
Definition at line 444 of file range_types.hpp.
|
inline |
Make the range empty.
Definition at line 82 of file range_types.hpp.
|
inline |
Definition at line 79 of file range_types.hpp.
|
inline |
Get the lower bound.
Definition at line 88 of file range_types.hpp.
|
inline |
Get the upper bound.
Definition at line 96 of file range_types.hpp.
|
inline |
Definition at line 84 of file range_types.hpp.
|
inline |
Definition at line 85 of file range_types.hpp.
|
inline |
Definition at line 103 of file range_types.hpp.
|
inline |
Definition at line 104 of file range_types.hpp.
|
inline |
Definition at line 77 of file range_types.hpp.
| bool storages::postgres::Range< T >::operator== | ( | const Range< T > & | rhs | ) | const |
Definition at line 447 of file range_types.hpp.
Definition at line 108 of file range_types.hpp.