#include <sqldb.h>
Collaboration diagram for Dv::Sql::Command::iterator:
Public Member Functions | |
iterator & | operator++ () throw (Exception) |
Make the iterator point to the next row in the result: prefix version. | |
iterator | operator++ (int) |
Make the iterator point to the next row in the result: postfix version. | |
std::vector< std::string > | operator * () const throw (Exception) |
Dereference to the current row. | |
bool | operator== (const iterator &j) const |
Compare two iterators. | |
bool | operator!= (const iterator &j) const |
Compare two iterators. | |
std::string | operator() (unsigned int c) const throw (Exception) |
Non standard operator: get c'th column of current row. | |
Command & | command () const |
Return command associated with iterator. | |
Private Types | |
enum | { END = -1, BEGIN = 0 } |
Private Member Functions | |
iterator (Command &cmd, int r) | |
Private Attributes | |
Command & | cmd_ |
int | row_ |
Friends | |
class | Command |
Friend. |
A valid iterator in the range [begin,end[ points to a row of the query result.
Its value type is the type of a row in the query result, i.e. a vector of strings (classes like Dv::Int can be used to convert to numeric types, see dvutil).
Definition at line 408 of file sqldb.h.
|
|
|
|
|
Make the iterator point to the next row in the result: prefix version.
|
|
Make the iterator point to the next row in the result: postfix version.
|
|
Dereference to the current row. NULL is represented by the std::string ``NULL''. |
|
Compare two iterators.
|
|
Compare two iterators.
|
|
Non standard operator: get c'th column of current row. Example |
|
Return command associated with iterator.
Definition at line 447 of file sqldb.h. References cmd_. |
|
Friend.
|
|
Definition at line 451 of file sqldb.h. Referenced by command(), iterator(), operator!=(), and operator==(). |
|
Definition at line 452 of file sqldb.h. Referenced by iterator(), operator!=(), and operator==(). |