pg_async
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Friends | List of all members
tip::db::pg::resultset::const_row_iterator Class Reference

#include <resultset.hpp>

Inheritance diagram for tip::db::pg::resultset::const_row_iterator:
Inheritance graph
[legend]
Collaboration diagram for tip::db::pg::resultset::const_row_iterator:
Collaboration graph
[legend]

Public Types

typedef row value_type
 
typedef resultset::difference_type difference_type
 
typedef value_type reference
 
typedef value_type const * pointer
 
typedef
std::random_access_iterator_tag 
iterator_category
 
- Public Types inherited from tip::db::pg::resultset::row
typedef smallint size_type
 
typedef resultset::difference_type difference_type
 
typedef const_field_iterator const_iterator
 
typedef
const_reverse_field_iterator 
const_reverse_iterator
 
typedef class field value_type
 
typedef class field reference
 
typedef const_iterator pointer
 

Public Member Functions

 const_row_iterator ()
 
Dereferencing
reference operator* () const
 
pointer operator-> () const
 
Iterator validity checking
 operator bool () const
 
bool operator! () const
 
Random access iterator concept
const_row_iteratoroperator++ ()
 
const_row_iterator operator++ (int)
 
const_row_iteratoroperator-- ()
 
const_row_iterator operator-- (int)
 
const_row_iteratoroperator+= (difference_type distance)
 
const_row_iteratoroperator-= (difference_type distance)
 
Iterator comparison
bool operator== (const_row_iterator const &rhs) const
 
bool operator!= (const_row_iterator const &rhs) const
 
bool operator< (const_row_iterator const &rhs) const
 
bool operator<= (const_row_iterator const &rhs) const
 
bool operator> (const_row_iterator const &rhs) const
 
bool operator>= (const_row_iterator const &rhs) const
 
- Public Member Functions inherited from tip::db::pg::resultset::row
size_type row_index () const
 
template<typename... T>
void to (std::tuple< T... > &) const
 
template<typename... T>
void to (std::tuple< T &... >) const
 
template<typename... T>
void to (T &...) const
 
template<typename... T>
void to (T &...val) const
 
size_type size () const
 
bool empty () const
 
const_iterator begin () const
 
const_iterator end () const
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
reference operator[] (size_type index) const
 
reference operator[] (std::string const &name) const
 

Friends

class resultset
 

Additional Inherited Members

- Static Public Attributes inherited from tip::db::pg::resultset::row
static const size_type npos
 
- Protected Member Functions inherited from tip::db::pg::resultset::row
 row (result_pointer res, resultset::size_type idx)
 
- Protected Attributes inherited from tip::db::pg::resultset::row
result_pointer result_
 
resultset::size_type row_index_
 

Detailed Description

Iterator over the rows in a result set

Definition at line 467 of file resultset.hpp.

Member Typedef Documentation

Definition at line 472 of file resultset.hpp.

typedef std::random_access_iterator_tag tip::db::pg::resultset::const_row_iterator::iterator_category

Definition at line 475 of file resultset.hpp.

Definition at line 474 of file resultset.hpp.

Definition at line 473 of file resultset.hpp.

Iterator concept

Definition at line 471 of file resultset.hpp.

Constructor & Destructor Documentation

tip::db::pg::resultset::const_row_iterator::const_row_iterator ( )
inline

Create a terminating iterator

Definition at line 481 of file resultset.hpp.

Member Function Documentation

tip::db::pg::resultset::const_row_iterator::operator bool ( ) const
inline

Implicitly convert to boolean. The row index is valid when it is equal to the result set size for an iterator that is returned by end() function to be valid and moveable.

Definition at line 504 of file resultset.hpp.

bool tip::db::pg::resultset::const_row_iterator::operator! ( ) const
inline

Definition at line 507 of file resultset.hpp.

Definition at line 550 of file resultset.hpp.

reference tip::db::pg::resultset::const_row_iterator::operator* ( ) const
inline

Definition at line 486 of file resultset.hpp.

const_row_iterator& tip::db::pg::resultset::const_row_iterator::operator++ ( )
inline

Definition at line 513 of file resultset.hpp.

const_row_iterator tip::db::pg::resultset::const_row_iterator::operator++ ( int  )
inline

Definition at line 517 of file resultset.hpp.

const_row_iterator& tip::db::pg::resultset::const_row_iterator::operator+= ( difference_type  distance)
inline

Definition at line 536 of file resultset.hpp.

const_row_iterator& tip::db::pg::resultset::const_row_iterator::operator-- ( )
inline

Definition at line 524 of file resultset.hpp.

const_row_iterator tip::db::pg::resultset::const_row_iterator::operator-- ( int  )
inline

Definition at line 528 of file resultset.hpp.

const_row_iterator& tip::db::pg::resultset::const_row_iterator::operator-= ( difference_type  distance)
inline

Definition at line 539 of file resultset.hpp.

pointer tip::db::pg::resultset::const_row_iterator::operator-> ( ) const
inline

Definition at line 491 of file resultset.hpp.

bool tip::db::pg::resultset::const_row_iterator::operator< ( const_row_iterator const &  rhs) const
inline

Definition at line 554 of file resultset.hpp.

bool tip::db::pg::resultset::const_row_iterator::operator<= ( const_row_iterator const &  rhs) const
inline

Definition at line 557 of file resultset.hpp.

bool tip::db::pg::resultset::const_row_iterator::operator== ( const_row_iterator const &  rhs) const
inline

Definition at line 546 of file resultset.hpp.

bool tip::db::pg::resultset::const_row_iterator::operator> ( const_row_iterator const &  rhs) const
inline

Definition at line 560 of file resultset.hpp.

bool tip::db::pg::resultset::const_row_iterator::operator>= ( const_row_iterator const &  rhs) const
inline

Definition at line 563 of file resultset.hpp.

Friends And Related Function Documentation

friend class resultset
friend

Definition at line 568 of file resultset.hpp.


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