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 202 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 206 of file range_types.hpp.

Constructor & Destructor Documentation

◆ BoundedRange() [1/3]

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

Definition at line 512 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 516 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 521 of file range_types.hpp.

Member Function Documentation

◆ GetLowerBound()

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

Definition at line 219 of file range_types.hpp.

◆ GetUnboundedRange()

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

Definition at line 225 of file range_types.hpp.

◆ GetUpperBound()

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

Definition at line 222 of file range_types.hpp.

◆ IsLowerBoundIncluded()

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

Definition at line 220 of file range_types.hpp.

◆ IsUpperBoundIncluded()

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

Definition at line 223 of file range_types.hpp.

◆ operator!=()

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

Definition at line 217 of file range_types.hpp.

◆ operator==()

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

Definition at line 534 of file range_types.hpp.


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