userver: storages::postgres::BoundedRange< T > Class Template Reference
Loading...
Searching...
No Matches
storages::postgres::BoundedRange< T > Class Template Reference

Public Types

using ValueType = T
 

Public Member Functions

template<typename U , typename = std::enable_if_t< std::is_convertible_v<std::decay_t<U>, T>>>
 BoundedRange (U &&lower, U &&upper, RangeBounds bounds=RangeBound::kLower)
 
template<typename U >
 BoundedRange (Range< U > &&)
 
bool operator== (const BoundedRange &rhs) const
 
bool operator!= (const BoundedRange &rhs) const
 
const ValueType & GetLowerBound () const
 
bool IsLowerBoundIncluded () const
 
const ValueType & GetUpperBound () const
 
bool IsUpperBoundIncluded () const
 
const Range< T > & GetUnboundedRange () const
 

Detailed Description

template<typename T>
class storages::postgres::BoundedRange< T >

Definition at line 300 of file range_types.hpp.

Member Typedef Documentation

◆ ValueType

template<typename T >
using storages::postgres::BoundedRange< T >::ValueType = T

Definition at line 305 of file range_types.hpp.

Constructor & Destructor Documentation

◆ BoundedRange() [1/3]

template<typename T >
storages::postgres::BoundedRange< T >::BoundedRange ( )
noexcept

Definition at line 623 of file range_types.hpp.

◆ BoundedRange() [2/3]

template<typename T >
template<typename U , typename >
storages::postgres::BoundedRange< T >::BoundedRange ( U &&  lower,
U &&  upper,
RangeBounds  bounds = RangeBound::kLower 
)

Definition at line 628 of file range_types.hpp.

◆ BoundedRange() [3/3]

template<typename T >
template<typename U >
storages::postgres::BoundedRange< T >::BoundedRange ( Range< U > &&  rhs)
explicit

Definition at line 633 of file range_types.hpp.

Member Function Documentation

◆ GetLowerBound()

template<typename T >
const ValueType & storages::postgres::BoundedRange< T >::GetLowerBound ( ) const
inline

Definition at line 319 of file range_types.hpp.

◆ GetUnboundedRange()

template<typename T >
const Range< T > & storages::postgres::BoundedRange< T >::GetUnboundedRange ( ) const
inline

Definition at line 325 of file range_types.hpp.

◆ GetUpperBound()

template<typename T >
const ValueType & storages::postgres::BoundedRange< T >::GetUpperBound ( ) const
inline

Definition at line 322 of file range_types.hpp.

◆ IsLowerBoundIncluded()

template<typename T >
bool storages::postgres::BoundedRange< T >::IsLowerBoundIncluded ( ) const
inline

Definition at line 320 of file range_types.hpp.

◆ IsUpperBoundIncluded()

template<typename T >
bool storages::postgres::BoundedRange< T >::IsUpperBoundIncluded ( ) const
inline

Definition at line 323 of file range_types.hpp.

◆ operator!=()

template<typename T >
bool storages::postgres::BoundedRange< T >::operator!= ( const BoundedRange< T > &  rhs) const
inline

Definition at line 317 of file range_types.hpp.

◆ operator==()

template<typename T >
bool storages::postgres::BoundedRange< T >::operator== ( const BoundedRange< T > &  rhs) const

Definition at line 646 of file range_types.hpp.


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