Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

pqxx::Result::const_iterator Class Reference

Iterator for rows (tuples) in a query result set. More...

#include <result.h>

Inheritance diagram for pqxx::Result::const_iterator:

pqxx::Result::Tuple List of all members.

Public Member Functions

pointer operator-> () const
reference operator * () const
const_iterator operator++ (int)
const_iterator & operator++ ()
const_iterator operator-- (int)
const_iterator & operator-- ()
const_iterator & operator+= (difference_type i)
const_iterator & operator-= (difference_type i)
bool operator== (const const_iterator &i) const
bool operator!= (const const_iterator &i) const
bool operator< (const const_iterator &i) const
bool operator<= (const const_iterator &i) const
bool operator> (const const_iterator &i) const
bool operator>= (const const_iterator &i) const
const_iterator operator+ (difference_type o) const
const_iterator operator- (difference_type o) const
difference_type operator- (const_iterator i) const
Result::size_type num () const

Friends

class Result
const_iterator operator+ (difference_type o, const_iterator i)

Detailed Description

Iterator for rows (tuples) in a query result set.

A Result, once obtained, cannot be modified. Therefore there is no plain iterator type for Result. However its const_iterator type can be used to inspect its Tuples without changing them.


Member Function Documentation

Result::size_type pqxx::Result::const_iterator::num   const
 

reference pqxx::Result::const_iterator::operator *   const
 

bool pqxx::Result::const_iterator::operator!= const const_iterator &    i const
 

Result::const_iterator pqxx::Result::const_iterator::operator+ difference_type    o const
 

const_iterator& pqxx::Result::const_iterator::operator++  
 

pqxx::Result::const_iterator pqxx::Result::const_iterator::operator++ int   
 

const_iterator& pqxx::Result::const_iterator::operator+= difference_type    i
 

Result::const_iterator::difference_type pqxx::Result::const_iterator::operator- const_iterator    i const
 

Result::const_iterator pqxx::Result::const_iterator::operator- difference_type    o const
 

const_iterator& pqxx::Result::const_iterator::operator--  
 

pqxx::Result::const_iterator pqxx::Result::const_iterator::operator-- int   
 

const_iterator& pqxx::Result::const_iterator::operator-= difference_type    i
 

pointer pqxx::Result::const_iterator::operator->   const
 

The iterator "points to" its own Tuple, which is also itself. This allows a Result to be addressed as a two-dimensional container without going through the intermediate step of dereferencing the iterator. I hope this works out to be similar to C pointer/array semantics in useful cases[2].

bool pqxx::Result::const_iterator::operator< const const_iterator &    i const
 

bool pqxx::Result::const_iterator::operator<= const const_iterator &    i const
 

bool pqxx::Result::const_iterator::operator== const const_iterator &    i const
 

bool pqxx::Result::const_iterator::operator> const const_iterator &    i const
 

bool pqxx::Result::const_iterator::operator>= const const_iterator &    i const
 


Friends And Related Function Documentation

const_iterator operator+ difference_type    o,
const_iterator    i
[friend]
 

friend class Result [friend]
 


The documentation for this class was generated from the following files:
Generated on Fri Feb 28 19:23:33 2003 for libpqxx by doxygen1.3-rc3