|
drogon
C++14/17-based HTTP application framework
|
Reference to one row in a result. More...
#include <drogon/orm/Row.h>

Public Types | |
| using | SizeType = size_t |
| using | Reference = Field |
| using | ConstIterator = ConstRowIterator |
| using | Iterator = ConstIterator |
| using | ConstReverseIterator = ConstReverseRowIterator |
| using | DifferenceType = long |
Protected Member Functions | |
| Row (const Result &r, SizeType index) noexcept | |
Protected Attributes | |
| long | index_ {0} |
| Row::SizeType | end_ {0} |
Friends | |
| class | Field |
| class | Result |
Reference to one row in a result.
A row represents one row (also called a row) in a query result set. It also acts as a container mapping column numbers or names to field values (see below):
The row itself acts like a (non-modifyable) container, complete with its own const_iterator and const_reverse_iterator.
|
protected |
Row number You'd expect this to be a size_t, but due to the way reverse iterators are related to regular iterators, it must be allowed to underflow to -1.