#include <result.hxx>
Inheritance diagram for pqxx::result::tuple:
Public Types | |
typedef unsigned int | size_type |
typedef signed int | difference_type |
typedef const_fielditerator | const_iterator |
Public Member Functions | |
tuple (const result *r, result::size_type i) throw () | |
~tuple () throw () | |
const_iterator | begin () const throw () |
const_iterator | end () const throw () |
field | operator[] (size_type) const throw () |
field | operator[] (int i) const throw () |
field | operator[] (const char[]) const |
field | operator[] (const PGSTD::string &s) const |
field | at (size_type) const throw (PGSTD::out_of_range) |
field | at (int i) const throw (PGSTD::out_of_range) |
field | at (const char[]) const |
field | at (const PGSTD::string &s) const |
size_type | size () const throw () |
result::size_type | rownumber () const throw () |
size_type | column_number (const PGSTD::string &ColName) const |
Number of given column (throws exception if it doesn't exist). | |
size_type | column_number (const char ColName[]) const |
Number of given column (throws exception if it doesn't exist). | |
oid | column_type (size_type ColNum) const |
Type of given column. | |
oid | column_type (int ColNum) const |
Type of given column. | |
oid | column_type (const PGSTD::string &ColName) const |
Type of given column. | |
oid | column_type (const char ColName[]) const |
Type of given column. | |
result::size_type | num () const |
Protected Member Functions | |
tuple () | |
Protected Attributes | |
const result * | m_Home |
result::size_type | m_Index |
Friends | |
class | field |
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 tuple itself acts like a (non-modifyable) container, complete with its own const_iterator and, if your compiler supports them, const_reverse_iterator.
|
|
|
Reimplemented in pqxx::result::const_iterator. |
|
Reimplemented in pqxx::result::const_iterator. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Number of given column (throws exception if it doesn't exist).
|
|
Number of given column (throws exception if it doesn't exist).
|
|
Type of given column.
|
|
Type of given column.
|
|
Type of given column.
|
|
Type of given column.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|