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

pqxx::Result::Tuple Class Reference

Reference to one row in a Result. More...

#include <result.h>

Inheritance diagram for pqxx::Result::Tuple:

pqxx::Result::const_iterator pqxx::Result::Field List of all members.

Public Types

typedef Tuple_size_type size_type

Public Member Functions

 Tuple (const Result *r, Result::size_type i)
 ~Tuple ()
Field operator[] (size_type) const
Field operator[] (const char[]) const
Field operator[] (const PGSTD::string &s) const
Field at (size_type) const
Field at (const char[]) const
Field at (const PGSTD::string &s) const
size_type size () const
Result::size_type Row () const

Protected Member Functions

 Tuple ()

Protected Attributes

const Resultm_Home
Result::size_type m_Index

Detailed Description

Reference to one row in a Result.

A Tuple represents one row (also called a tuple) in a query result set. It also acts as a container mapping column numbers or names to Field values (see below):

cout << Tuple["date"].c_str() << ": " << Tuple["name"].c_str() << endl;

The fields in a Tuple can not currently be iterated over.


Member Typedef Documentation

typedef Tuple_size_type pqxx::Result::Tuple::size_type
 

Reimplemented in pqxx::Result::Field.


Constructor & Destructor Documentation

pqxx::Result::Tuple::Tuple const Result   r,
Result::size_type    i
 

pqxx::Result::Tuple::~Tuple  
 

pqxx::Result::Tuple::Tuple   [protected]
 


Member Function Documentation

Field pqxx::Result::Tuple::at const PGSTD::string &    s const
 

pqxx::Result::Field pqxx::Result::Tuple::at const    char[] const
 

pqxx::Result::Field pqxx::Result::Tuple::at size_type    const
 

Field pqxx::Result::Tuple::operator[] const PGSTD::string &    s const
 

pqxx::Result::Field pqxx::Result::Tuple::operator[] const    char[] const
 

Result::Field pqxx::Result::Tuple::operator[] size_type    const
 

Result::size_type pqxx::Result::Tuple::Row   const
 

Result::Tuple::size_type pqxx::Result::Tuple::size   const
 

Reimplemented in pqxx::Result::Field.


Member Data Documentation

const Result* pqxx::Result::Tuple::m_Home [protected]
 

Result::size_type pqxx::Result::Tuple::m_Index [protected]
 


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