#include <ozo/result.h>
Database request result row proxy.
Types | |
using | const_iterator = < implementation defined > |
using | iterator = const_iterator |
Public Member Functions | |
const_iterator | begin () const noexcept |
const_iterator | end () const noexcept |
const_iterator | find (const char *name) const noexcept |
value | operator[] (int index) const noexcept |
std::size_t | size () const noexcept |
bool | empty () const noexcept |
value | at (int index) const |
value | at (const char *name) const |
using ozo::row::const_iterator = <implementation defined> |
Constant iterator on value in the row.
Random access iterator. Provides access to a ozo::value
object. Since ozo::basic_result
provides read-only access to a database request result, all the iterators provide a read-only access to a ozo::value
object.
using ozo::row::iterator = const_iterator |
Iterator on value in the row, alias on iterator
class.
value ozo::row::at | ( | const char * | name | ) | const |
value ozo::row::at | ( | int | index | ) | const |
Get value by field index with range check
If index in not range [0, size())
throws std::out_of_range
.
index | — index of value in the row. |
ozo::value
— proxy object to a value. References size().
|
noexcept |
Iterator on the first of row values sequence.
Referenced by end(), find(), and operator[]().
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
Get value by field index.
Valid index is in range [0, size())
. No index-in-range check is performing.
index | — index of the value field. |
ozo::value
— proxy object on the value. References begin().