libpqxx
5.0
|
Iterator for fields in a row. Use as row::const_iterator. More...
#include <row.hxx>
Public Types | |
typedef row::size_type | size_type |
typedef row::difference_type | difference_type |
typedef field | reference |
![]() | |
typedef size_t | size_type |
Public Member Functions | |
const_row_iterator (const row &T, row::size_type C) PQXX_NOEXCEPT | |
const_row_iterator (const field &F) PQXX_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 const_row_iterator &i) const |
bool | operator!= (const const_row_iterator &i) const |
bool | operator< (const const_row_iterator &i) const |
bool | operator<= (const const_row_iterator &i) const |
bool | operator> (const const_row_iterator &i) const |
bool | operator>= (const const_row_iterator &i) const |
![]() | |
field (const row &R, row_size_type C) PQXX_NOEXCEPT | |
Constructor. More... | |
template<> | |
bool | to (const char *&Obj) const |
Specialization: to(const char *&) . More... | |
bool | operator== (const field &) const |
Byte-by-byte comparison of two fields (all nulls are considered equal) More... | |
bool | operator!= (const field &rhs) const |
Byte-by-byte comparison (all nulls are considered equal) More... | |
const char * | 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... | |
const char * | c_str () const |
Read as plain C string. More... | |
template<typename T > | |
bool | to (T &Obj) const |
Read value into Obj; or leave Obj untouched and return false if null. 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 > | |
bool | to (T &Obj, const T &Default) const |
Read value into Obj; or use Default & return false if null. More... | |
template<typename T > | |
T | as (const T &Default) const |
Return value as object of given type, or Default if null. More... | |
template<typename T > | |
T | as () const |
Return value as object of given type, or throw exception if null. More... | |
bool | is_null () const PQXX_NOEXCEPT |
Is this field's value null? More... | |
size_type | size () const PQXX_NOEXCEPT |
Return number of bytes taken up by the field's value. 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_row_iterator | operator+ (difference_type, const_row_iterator) |
Additional Inherited Members | |
![]() | |
const result * | home () const PQXX_NOEXCEPT |
size_t | idx () const PQXX_NOEXCEPT |
row_size_type | col () const PQXX_NOEXCEPT |
![]() | |
row_size_type | m_col |
Iterator for fields in a row. Use as row::const_iterator.
pqxx::const_row_iterator::const_row_iterator | ( | const row & | T, |
row::size_type | C | ||
) |
pqxx::const_row_iterator::const_row_iterator | ( | const field & | F | ) |
bool pqxx::const_row_iterator::operator!= | ( | const const_row_iterator & | i | ) | const |
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 | 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 const_row_iterator & | i | ) | const |
bool pqxx::const_row_iterator::operator<= | ( | const const_row_iterator & | i | ) | const |
bool pqxx::const_row_iterator::operator== | ( | const const_row_iterator & | i | ) | const |
bool pqxx::const_row_iterator::operator> | ( | const const_row_iterator & | i | ) | const |
bool pqxx::const_row_iterator::operator>= | ( | const const_row_iterator & | i | ) | const |
|
friend |