Class row_ref

Nested Relationships

Nested Types

Class Documentation

class row_ref

A reference to a row in the result set.

Public Functions

row_ref() = default
inline row_ref(const_row_handle rh, std::shared_ptr<result_impl> result_impl)

Constructor.

inline const_field_iterator begin() const noexcept

Return begin field iterator.

inline const_field_iterator cbegin() const noexcept

Return cbegin field iterator.

inline const_field_iterator end() const noexcept

Return end field iterator.

inline const_field_iterator cend() const noexcept

Return cend field iterator.

inline field_ref front() const noexcept

return reference to front field

inline field_ref back() const noexcept

return reference to back field

size_t size() const noexcept

return number of items in the row

inline bool empty() const noexcept

return if the row contains no items at all

inline field_ref operator[](uint16_t index) const noexcept

access field by index

field_ref operator[](std::string_view name) const

access field by name

class const_field_iterator

Iterator for the items in this row.

Friends

friend class result