userver: storages::postgres::TypedResultSet< T, ExtractionTag > Class Template Reference
Loading...
Searching...
No Matches
storages::postgres::TypedResultSet< T, ExtractionTag > Class Template Reference

Detailed Description

template<typename T, typename ExtractionTag>
class storages::postgres::TypedResultSet< T, ExtractionTag >

Definition at line 151 of file typed_result_set.hpp.

Public Types

using size_type = ResultSet::size_type
 
using difference_type = ResultSet::difference_type
 

Public Member Functions

Forward iteration
const_iterator cbegin () const &
 
const_iterator begin () const &
 
const_iterator cend () const &
 
const_iterator end () const &
 
const_iterator cbegin () const &&
 
const_iterator begin () const &&
 
const_iterator cend () const &&
 
const_iterator end () const &&
 

Static Public Attributes

static constexpr size_type npos = ResultSet::npos
 
static constexpr ExtractionTag kExtractTag {}
 

Row container concept

using const_iterator = detail::ConstTypedRowIterator<T, ExtractionTag, detail::IteratorDirection::kForward>
 
using const_reverse_iterator = detail::ConstTypedRowIterator<T, ExtractionTag, detail::IteratorDirection::kReverse>
 
using value_type = T
 
using pointer = const_iterator
 
using reference = std::add_const_t<value_type>
 
 TypedResultSet (ResultSet result)
 
size_type Size () const
 Number of rows in the result set.
 
bool IsEmpty () const
 

Reverse iteration

const_reverse_iterator crbegin () const &
 
const_reverse_iterator rbegin () const &
 
const_reverse_iterator crend () const &
 
const_reverse_iterator rend () const &
 
const_reverse_iterator crbegin () const &&
 
const_reverse_iterator rbegin () const &&
 
const_reverse_iterator crend () const &&
 
const_reverse_iterator rend () const &&
 
reference operator[] (size_type index) const &
 Access a row by index.
 
reference operator[] (size_type) const &&
 

Member Typedef Documentation

◆ const_iterator

template<typename T , typename ExtractionTag >
using storages::postgres::TypedResultSet< T, ExtractionTag >::const_iterator = detail::ConstTypedRowIterator<T, ExtractionTag, detail::IteratorDirection::kForward>

Definition at line 160 of file typed_result_set.hpp.

◆ const_reverse_iterator

template<typename T , typename ExtractionTag >
using storages::postgres::TypedResultSet< T, ExtractionTag >::const_reverse_iterator = detail::ConstTypedRowIterator<T, ExtractionTag, detail::IteratorDirection::kReverse>

Definition at line 161 of file typed_result_set.hpp.

◆ difference_type

template<typename T , typename ExtractionTag >
using storages::postgres::TypedResultSet< T, ExtractionTag >::difference_type = ResultSet::difference_type

Definition at line 154 of file typed_result_set.hpp.

◆ pointer

template<typename T , typename ExtractionTag >
using storages::postgres::TypedResultSet< T, ExtractionTag >::pointer = const_iterator

Definition at line 164 of file typed_result_set.hpp.

◆ reference

template<typename T , typename ExtractionTag >
using storages::postgres::TypedResultSet< T, ExtractionTag >::reference = std::add_const_t<value_type>

Definition at line 171 of file typed_result_set.hpp.

◆ size_type

template<typename T , typename ExtractionTag >
using storages::postgres::TypedResultSet< T, ExtractionTag >::size_type = ResultSet::size_type

Definition at line 153 of file typed_result_set.hpp.

◆ value_type

template<typename T , typename ExtractionTag >
using storages::postgres::TypedResultSet< T, ExtractionTag >::value_type = T

Definition at line 163 of file typed_result_set.hpp.

Constructor & Destructor Documentation

◆ TypedResultSet()

template<typename T , typename ExtractionTag >
storages::postgres::TypedResultSet< T, ExtractionTag >::TypedResultSet ( ResultSet result)
inlineexplicit

Definition at line 175 of file typed_result_set.hpp.

Member Function Documentation

◆ begin() [1/2]

template<typename T , typename ExtractionTag >
const_iterator storages::postgres::TypedResultSet< T, ExtractionTag >::begin ( ) const &
inline

Definition at line 187 of file typed_result_set.hpp.

◆ begin() [2/2]

template<typename T , typename ExtractionTag >
const_iterator storages::postgres::TypedResultSet< T, ExtractionTag >::begin ( ) const &&
inline

Definition at line 191 of file typed_result_set.hpp.

◆ cbegin() [1/2]

template<typename T , typename ExtractionTag >
const_iterator storages::postgres::TypedResultSet< T, ExtractionTag >::cbegin ( ) const &
inline

Definition at line 186 of file typed_result_set.hpp.

◆ cbegin() [2/2]

template<typename T , typename ExtractionTag >
const_iterator storages::postgres::TypedResultSet< T, ExtractionTag >::cbegin ( ) const &&
inline

Definition at line 190 of file typed_result_set.hpp.

◆ cend() [1/2]

template<typename T , typename ExtractionTag >
const_iterator storages::postgres::TypedResultSet< T, ExtractionTag >::cend ( ) const &
inline

Definition at line 188 of file typed_result_set.hpp.

◆ cend() [2/2]

template<typename T , typename ExtractionTag >
const_iterator storages::postgres::TypedResultSet< T, ExtractionTag >::cend ( ) const &&
inline

Definition at line 192 of file typed_result_set.hpp.

◆ crbegin() [1/2]

template<typename T , typename ExtractionTag >
const_reverse_iterator storages::postgres::TypedResultSet< T, ExtractionTag >::crbegin ( ) const &
inline

Definition at line 197 of file typed_result_set.hpp.

◆ crbegin() [2/2]

template<typename T , typename ExtractionTag >
const_reverse_iterator storages::postgres::TypedResultSet< T, ExtractionTag >::crbegin ( ) const &&
inline

Definition at line 201 of file typed_result_set.hpp.

◆ crend() [1/2]

template<typename T , typename ExtractionTag >
const_reverse_iterator storages::postgres::TypedResultSet< T, ExtractionTag >::crend ( ) const &
inline

Definition at line 199 of file typed_result_set.hpp.

◆ crend() [2/2]

template<typename T , typename ExtractionTag >
const_reverse_iterator storages::postgres::TypedResultSet< T, ExtractionTag >::crend ( ) const &&
inline

Definition at line 203 of file typed_result_set.hpp.

◆ end() [1/2]

template<typename T , typename ExtractionTag >
const_iterator storages::postgres::TypedResultSet< T, ExtractionTag >::end ( ) const &
inline

Definition at line 189 of file typed_result_set.hpp.

◆ end() [2/2]

template<typename T , typename ExtractionTag >
const_iterator storages::postgres::TypedResultSet< T, ExtractionTag >::end ( ) const &&
inline

Definition at line 193 of file typed_result_set.hpp.

◆ IsEmpty()

template<typename T , typename ExtractionTag >
bool storages::postgres::TypedResultSet< T, ExtractionTag >::IsEmpty ( ) const
inline

Definition at line 179 of file typed_result_set.hpp.

◆ operator[]() [1/2]

template<typename T , typename ExtractionTag >
reference storages::postgres::TypedResultSet< T, ExtractionTag >::operator[] ( size_type index) const &
inline

Access a row by index.

Exceptions
RowIndexOutOfBoundsif index is out of bounds

Definition at line 209 of file typed_result_set.hpp.

◆ operator[]() [2/2]

template<typename T , typename ExtractionTag >
reference storages::postgres::TypedResultSet< T, ExtractionTag >::operator[] ( size_type ) const &&
inline

Definition at line 211 of file typed_result_set.hpp.

◆ rbegin() [1/2]

template<typename T , typename ExtractionTag >
const_reverse_iterator storages::postgres::TypedResultSet< T, ExtractionTag >::rbegin ( ) const &
inline

Definition at line 198 of file typed_result_set.hpp.

◆ rbegin() [2/2]

template<typename T , typename ExtractionTag >
const_reverse_iterator storages::postgres::TypedResultSet< T, ExtractionTag >::rbegin ( ) const &&
inline

Definition at line 202 of file typed_result_set.hpp.

◆ rend() [1/2]

template<typename T , typename ExtractionTag >
const_reverse_iterator storages::postgres::TypedResultSet< T, ExtractionTag >::rend ( ) const &
inline

Definition at line 200 of file typed_result_set.hpp.

◆ rend() [2/2]

template<typename T , typename ExtractionTag >
const_reverse_iterator storages::postgres::TypedResultSet< T, ExtractionTag >::rend ( ) const &&
inline

Definition at line 204 of file typed_result_set.hpp.

◆ Size()

template<typename T , typename ExtractionTag >
size_type storages::postgres::TypedResultSet< T, ExtractionTag >::Size ( ) const
inline

Number of rows in the result set.

Definition at line 178 of file typed_result_set.hpp.

Member Data Documentation

◆ kExtractTag

template<typename T , typename ExtractionTag >
constexpr ExtractionTag storages::postgres::TypedResultSet< T, ExtractionTag >::kExtractTag {}
staticconstexpr

Definition at line 156 of file typed_result_set.hpp.

◆ npos

template<typename T , typename ExtractionTag >
constexpr size_type storages::postgres::TypedResultSet< T, ExtractionTag >::npos = ResultSet::npos
staticconstexpr

Definition at line 155 of file typed_result_set.hpp.


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