|
libpqxx
7.0.1
|
Iterator for fields in a row. Use as row::const_iterator. More...
#include <row.hxx>

Public Types | |
| using | iterator_category = std::random_access_iterator_tag |
| using | value_type = field const |
| using | pointer = field const * |
| using | size_type = row_size_type |
| using | difference_type = row_difference_type |
| using | reference = field |
Public Types inherited from pqxx::field | |
| using | size_type = field_size_type |
Public Member Functions | |
| const_row_iterator (row const &T, row_size_type C) noexcept | |
| const_row_iterator (field const &F) noexcept | |
Dereferencing operators | |
| pointer | operator-> () const |
| reference | operator* () const |
Manipulations | |
| const_row_iterator | operator++ (int) |
| const_row_iterator & | operator++ () |
| const_row_iterator | operator-- (int) |
| const_row_iterator & | operator-- () |
| const_row_iterator & | operator+= (difference_type i) |
| const_row_iterator & | operator-= (difference_type i) |
Comparisons | |
| bool | operator== (const_row_iterator const &i) const |
| bool | operator!= (const_row_iterator const &i) const |
| bool | operator< (const_row_iterator const &i) const |
| bool | operator<= (const_row_iterator const &i) const |
| bool | operator> (const_row_iterator const &i) const |
| bool | operator>= (const_row_iterator const &i) const |
Public Member Functions inherited from pqxx::field | |
| field (row const &r, row_size_type c) noexcept | |
| Constructor. More... | |
| template<> | |
| bool | to (char const *&obj) const |
Specialization: to(char const *&). More... | |
| bool | operator== (field const &) const |
| Byte-by-byte comparison of two fields (all nulls are considered equal) More... | |
| bool | operator!= (field const &rhs) const |
| Byte-by-byte comparison (all nulls are considered equal) More... | |
| char const * | name () const |
| Column name. More... | |
| oid | type () const |
| Column type. More... | |
| oid | table () const |
| What table did this column come from? More... | |
| row_size_type | num () const |
| row_size_type | table_column () const |
| What column number in its originating table did this column come from? More... | |
| std::string_view | view () const |
Read as string_view. More... | |
| char const * | c_str () const |
| Read as plain C string. More... | |
| bool | is_null () const noexcept |
| Is this field's value null? More... | |
| size_type | size () const noexcept |
| Return number of bytes taken up by the field's value. More... | |
| template<typename T > | |
| auto | to (T &obj) const -> typename std::enable_if<(not std::is_pointer< T >::value or std::is_same< T, char const * >::value), bool >::type |
Read value into obj; or if null, leave obj untouched and return false. More... | |
| template<typename T > | |
| bool | operator>> (T &obj) const |
Read value into obj; or leave obj untouched and return false if null. More... | |
| template<typename T > | |
| auto | to (T &obj, T const &default_value) const -> typename std::enable_if<(not std::is_pointer< T >::value or std::is_same< T, char const * >::value), bool >::type |
Read value into obj; or if null, use default value and return false. More... | |
| template<typename T > | |
| T | as (T const &default_value) const |
| Return value as object of given type, or default value if null. More... | |
| template<typename T > | |
| T | as () const |
| Return value as object of given type, or throw exception if null. More... | |
| template<typename T , template< typename > class O = std::optional> | |
| constexpr O< T > | get () const |
| Return value wrapped in some optional type (empty for nulls). More... | |
| array_parser | as_array () const |
| Parse the field as an SQL array. More... | |
Arithmetic operators | |
| const_row_iterator | operator+ (difference_type) const |
| const_row_iterator | operator- (difference_type) const |
| difference_type | operator- (const_row_iterator const &) const |
| const_row_iterator | operator+ (difference_type, const_row_iterator const &) |
Additional Inherited Members | |
Protected Member Functions inherited from pqxx::field | |
| result const & | home () const noexcept |
| result::size_type | idx () const noexcept |
| row_size_type | col () const noexcept |
Protected Attributes inherited from pqxx::field | |
| row_size_type | m_col |
Iterator for fields in a row. Use as row::const_iterator.
| using pqxx::const_row_iterator::iterator_category = std::random_access_iterator_tag |
| using pqxx::const_row_iterator::pointer = field const * |
| using pqxx::const_row_iterator::value_type = field const |
|
noexcept |
|
noexcept |
| bool pqxx::const_row_iterator::operator!= | ( | const_row_iterator const & | i | ) | const |
References pqxx::field::col().
| reference pqxx::const_row_iterator::operator* | ( | ) | const |
| const_row_iterator pqxx::const_row_iterator::operator+ | ( | difference_type | o | ) | const |
| pqxx::const_row_iterator pqxx::const_row_iterator::operator++ | ( | int | ) |
| const_row_iterator& pqxx::const_row_iterator::operator++ | ( | ) |
| const_row_iterator& pqxx::const_row_iterator::operator+= | ( | difference_type | i | ) |
| const_row_iterator pqxx::const_row_iterator::operator- | ( | difference_type | o | ) | const |
| const_row_iterator::difference_type pqxx::const_row_iterator::operator- | ( | const_row_iterator const & | i | ) | const |
References pqxx::field::num().
| pqxx::const_row_iterator pqxx::const_row_iterator::operator-- | ( | int | ) |
| const_row_iterator& pqxx::const_row_iterator::operator-- | ( | ) |
| const_row_iterator& pqxx::const_row_iterator::operator-= | ( | difference_type | i | ) |
| pointer pqxx::const_row_iterator::operator-> | ( | ) | const |
| bool pqxx::const_row_iterator::operator< | ( | const_row_iterator const & | i | ) | const |
References pqxx::field::col().
| bool pqxx::const_row_iterator::operator<= | ( | const_row_iterator const & | i | ) | const |
References pqxx::field::col().
| bool pqxx::const_row_iterator::operator== | ( | const_row_iterator const & | i | ) | const |
References pqxx::field::col().
| bool pqxx::const_row_iterator::operator> | ( | const_row_iterator const & | i | ) | const |
References pqxx::field::col().
| bool pqxx::const_row_iterator::operator>= | ( | const_row_iterator const & | i | ) | const |
References pqxx::field::col().
|
friend |