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

Detailed Description

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

Definition at line 234 of file range_types.hpp.

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
 

Member Typedef Documentation

◆ ValueType

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

Definition at line 239 of file range_types.hpp.

Constructor & Destructor Documentation

◆ BoundedRange() [1/3]

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

Definition at line 557 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 562 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 567 of file range_types.hpp.

Member Function Documentation

◆ GetLowerBound()

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

Definition at line 253 of file range_types.hpp.

◆ GetUnboundedRange()

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

Definition at line 259 of file range_types.hpp.

◆ GetUpperBound()

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

Definition at line 256 of file range_types.hpp.

◆ IsLowerBoundIncluded()

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

Definition at line 254 of file range_types.hpp.

◆ IsUpperBoundIncluded()

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

Definition at line 257 of file range_types.hpp.

◆ operator!=()

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

Definition at line 251 of file range_types.hpp.

◆ operator==()

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

Definition at line 580 of file range_types.hpp.


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