pqxx::const_reverse_row_iterator Class Reference

Reverse iterator for a row. Use as row::const_reverse_iterator. More...

#include <row.hxx>

Inheritance diagram for pqxx::const_reverse_row_iterator:
pqxx::const_row_iterator

List of all members.

Public Types

typedef const_row_iterator super
typedef const_row_iterator iterator_type
typedef row::difference_type difference_type
typedef field reference

Public Member Functions

 const_reverse_row_iterator (const const_reverse_row_iterator &r)
 const_reverse_row_iterator (const super &rhs) PQXX_NOEXCEPT
PQXX_PURE iterator_type base () const PQXX_NOEXCEPT
Manipulations



const_reverse_row_iteratoroperator= (const const_reverse_row_iterator &r)
const_reverse_row_iterator operator++ ()
const_reverse_row_iterator operator++ (int)
const_reverse_row_iteratoroperator-- ()
const_reverse_row_iterator operator-- (int)
const_reverse_row_iteratoroperator+= (difference_type i)
const_reverse_row_iteratoroperator-= (difference_type i)
Arithmetic operators



const_reverse_row_iterator operator+ (difference_type i) const
const_reverse_row_iterator operator- (difference_type i)
difference_type operator- (const const_reverse_row_iterator &rhs) const
Comparisons



bool operator== (const const_reverse_row_iterator &rhs) const PQXX_NOEXCEPT
 Byte-by-byte comparison of two fields (all nulls are considered equal).
bool operator!= (const const_reverse_row_iterator &rhs) const PQXX_NOEXCEPT
 Byte-by-byte comparison (all nulls are considered equal).
bool operator< (const const_reverse_row_iterator &rhs) const
bool operator<= (const const_reverse_row_iterator &rhs) const
bool operator> (const const_reverse_row_iterator &rhs) const
bool operator>= (const const_reverse_row_iterator &rhs) const

Detailed Description

Reverse iterator for a row. Use as row::const_reverse_iterator.


Member Typedef Documentation


Constructor & Destructor Documentation

pqxx::const_reverse_row_iterator::const_reverse_row_iterator ( const const_reverse_row_iterator r  ) 
pqxx::const_reverse_row_iterator::const_reverse_row_iterator ( const super rhs  )  [explicit]

Member Function Documentation

pqxx::const_row_iterator pqxx::const_reverse_row_iterator::base (  )  const
bool pqxx::const_reverse_row_iterator::operator!= ( const const_reverse_row_iterator rhs  )  const

Byte-by-byte comparison (all nulls are considered equal).

Warning:
See operator==() for important information about this operator

Reimplemented from pqxx::const_row_iterator.

const_reverse_row_iterator pqxx::const_reverse_row_iterator::operator+ ( difference_type  i  )  const

Reimplemented from pqxx::const_row_iterator.

pqxx::const_reverse_row_iterator pqxx::const_reverse_row_iterator::operator++ ( int   ) 

Reimplemented from pqxx::const_row_iterator.

References operator++().

const_reverse_row_iterator pqxx::const_reverse_row_iterator::operator++ (  ) 

Reimplemented from pqxx::const_row_iterator.

Referenced by operator++().

const_reverse_row_iterator& pqxx::const_reverse_row_iterator::operator+= ( difference_type  i  ) 

Reimplemented from pqxx::const_row_iterator.

difference_type pqxx::const_reverse_row_iterator::operator- ( const const_reverse_row_iterator rhs  )  const
const_reverse_row_iterator pqxx::const_reverse_row_iterator::operator- ( difference_type  i  ) 
pqxx::const_reverse_row_iterator pqxx::const_reverse_row_iterator::operator-- ( int   ) 

Reimplemented from pqxx::const_row_iterator.

References operator--().

const_reverse_row_iterator& pqxx::const_reverse_row_iterator::operator-- (  ) 

Reimplemented from pqxx::const_row_iterator.

Referenced by operator--().

const_reverse_row_iterator& pqxx::const_reverse_row_iterator::operator-= ( difference_type  i  ) 

Reimplemented from pqxx::const_row_iterator.

bool pqxx::const_reverse_row_iterator::operator< ( const const_reverse_row_iterator rhs  )  const

Reimplemented from pqxx::const_row_iterator.

bool pqxx::const_reverse_row_iterator::operator<= ( const const_reverse_row_iterator rhs  )  const

Reimplemented from pqxx::const_row_iterator.

const_reverse_row_iterator& pqxx::const_reverse_row_iterator::operator= ( const const_reverse_row_iterator r  ) 
bool pqxx::const_reverse_row_iterator::operator== ( const const_reverse_row_iterator rhs  )  const

Byte-by-byte comparison of two fields (all nulls are considered equal).

Warning:
null handling is still open to discussion and change!

Handling of null values differs from that in SQL where a comparison involving a null value yields null, so nulls are never considered equal to one another or even to themselves.

Null handling also probably differs from the closest equivalent in C++, which is the NaN (Not-a-Number) value, a singularity comparable to SQL's null. This is because the builtin == operator demands that a == a.

The usefulness of this operator is questionable. No interpretation whatsoever is imposed on the data; 0 and 0.0 are considered different, as are null vs. the empty string, or even different (but possibly equivalent and equally valid) encodings of the same Unicode character etc.

Reimplemented from pqxx::const_row_iterator.

bool pqxx::const_reverse_row_iterator::operator> ( const const_reverse_row_iterator rhs  )  const

Reimplemented from pqxx::const_row_iterator.

bool pqxx::const_reverse_row_iterator::operator>= ( const const_reverse_row_iterator rhs  )  const

Reimplemented from pqxx::const_row_iterator.


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

Generated on 17 Mar 2017 for libpqxx by  doxygen 1.6.1