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

pqxx::result::const_iterator Class Reference

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

#include <result.hxx>

Inheritance diagram for pqxx::result::const_iterator:

pqxx::result::tuple List of all members.

Public Member Functions

 const_iterator ()
pointer operator-> () const
reference operator * () const
const_iterator operator++ (int)
const_iteratoroperator++ ()
const_iterator operator-- (int)
const_iteratoroperator-- ()
const_iteratoroperator+= (difference_type i)
const_iteratoroperator-= (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

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.


Constructor & Destructor Documentation

pqxx::result::const_iterator::const_iterator  ) 
 


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]
 


The documentation for this class was generated from the following files:
Generated on Mon Aug 9 01:47:26 2004 for libpqxx by doxygen 1.3.8