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_field_iterator Class Reference

#include <resultset.hpp>

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

Public Types

Iterator concept
typedef field 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 Member Functions

 const_field_iterator ()
 
Dereferencing
reference operator* () const
 
pointer operator-> () const
 
Iterator validity checking
 operator bool () const
 
bool operator! () const
 
Random access iterator concept
const_field_iteratoroperator++ ()
 
const_field_iterator operator++ (int)
 
const_field_iteratoroperator-- ()
 
const_field_iterator operator-- (int)
 
const_field_iteratoroperator+= (difference_type distance)
 
const_field_iteratoroperator-= (difference_type distance)
 
Iterator comparison
bool operator== (const_field_iterator const &rhs) const
 
bool operator!= (const_field_iterator const &rhs) const
 
bool operator< (const_field_iterator const &rhs) const
 
bool operator<= (const_field_iterator const &rhs) const
 
bool operator> (const_field_iterator const &rhs) const
 
bool operator>= (const_field_iterator const &rhs) const
 
- Public Member Functions inherited from tip::db::pg::resultset::field
size_type row_index () const
 Index of owner row. More...
 
row::size_type field_index () const
 Index of field in the row. More...
 
std::string const & name () const
 Name of field. More...
 
field_description const & description () const
 Field description. More...
 
bool is_null () const
 Is field value null. More...
 
bool empty () const
 Is field value empty (not null) More...
 
template<typename T >
bool to (T &val) const
 
template<typename T >
bool to (boost::optional< T > &val) const
 
template<typename T >
std::decay< T >::type as () const
 
template<typename T >
std::decay< T >::type coalesce (T const &default_val)
 

Friends

class row
 

Additional Inherited Members

- Protected Member Functions inherited from tip::db::pg::resultset::field
 field (result_pointer res, size_type row, row::size_type col)
 
- Protected Attributes inherited from tip::db::pg::resultset::field
result_pointer result_
 
size_type row_index_
 
row::size_type field_index_
 

Detailed Description

Iterator over the fields in a data row

Definition at line 580 of file resultset.hpp.

Member Typedef Documentation

Definition at line 585 of file resultset.hpp.

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

Definition at line 588 of file resultset.hpp.

Definition at line 587 of file resultset.hpp.

Definition at line 586 of file resultset.hpp.

Definition at line 584 of file resultset.hpp.

Constructor & Destructor Documentation

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

Create a terminating iterator

Definition at line 594 of file resultset.hpp.

Member Function Documentation

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

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

Definition at line 617 of file resultset.hpp.

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

Definition at line 622 of file resultset.hpp.

Definition at line 665 of file resultset.hpp.

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

Definition at line 599 of file resultset.hpp.

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

Definition at line 628 of file resultset.hpp.

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

Definition at line 632 of file resultset.hpp.

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

Definition at line 651 of file resultset.hpp.

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

Definition at line 639 of file resultset.hpp.

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

Definition at line 643 of file resultset.hpp.

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

Definition at line 654 of file resultset.hpp.

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

Definition at line 604 of file resultset.hpp.

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

Definition at line 669 of file resultset.hpp.

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

Definition at line 672 of file resultset.hpp.

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

Definition at line 661 of file resultset.hpp.

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

Definition at line 675 of file resultset.hpp.

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

Definition at line 678 of file resultset.hpp.

Friends And Related Function Documentation

friend class row
friend

Definition at line 682 of file resultset.hpp.


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