#include <Pt/Db/Result.h>
Public Types | |
| typedef size_t | size_type |
| The size-type used for the Result class. | |
| typedef Row | value_type |
| The value-type contained in the result. | |
Public Member Functions | |
| Result () | |
| default constructor | |
| Result (IResult *res) | |
| Construct a Result from an implemenataion. | |
| Row | getRow (size_type row_num) const |
| Returns a row at a given index. | |
| Value | getValue (size_type row_num, size_type field_num) const |
| Returns a value at a given result index and row index. | |
| size_type | size () const |
| Returns the number of rows of this result. | |
| bool | empty () const |
| Test if this result-object has no rows. | |
| size_type | getFieldCount () const |
| Return the number of columns in the result. | |
| Row | operator[] (size_type row_num) const |
| Returns a row at a given index. | |
| ConstIterator | begin () const |
| Returns an iterator to the first row. | |
| ConstIterator | end () const |
| Returns an iterator past the last row. | |
| bool | operator! () const |
| Test if bound to a database-result. | |
| const IResult * | getImpl () const |
| Returns the actual implementation-class. | |
Classes | |
| class | ConstIterator |
| Iterator to iterate over the rows of a result. More... | |
Returns a row at a given index, without range checking.
| row_num | Index of row. |
Returns a value at a given index, without range checking.
| row_num | Index of row. | |
| field_num | Index of value. |
| size_type size | ( | ) | const |
Returns the number of rows.
| bool empty | ( | ) | const |
Returns true if this result-object has no rows.
| size_type getFieldCount | ( | ) | const |
Returns the number of columns in the result.
Returns a row at a given index, without range checking.
| row_num | Specific row index. |
| ConstIterator begin | ( | ) | const |
The returned iterator is a random access iterator, thus i can be used with all algorithms of the stl.
| ConstIterator end | ( | ) | const |
The returned iterator is a random access iterator, thus i can be used with all algorithms of the stl.
| bool operator! | ( | ) | const |
Returns true if not bound to a database-result.