ThinSQLite++
A thin, safe and convenient modern C++ wrapper for SQLite API.
Loading...
Searching...
No Matches
row Class Reference

Row result of a statement. More...

Inheritance diagram for row:
row_iterator

Public Types

using value_type = cell
 
using size_type = int
 
using difference_type = int
 
using reference = value_type
 
using pointer = void
 
using iterator = const_iterator
 
using const_reverse_iterator = std::reverse_iterator<const_iterator>
 
using reverse_iterator = std::reverse_iterator<iterator>
 

Public Member Functions

 row (const statement *owner) noexcept
 Construct a row for a given statement.
 
 row (const std::unique_ptr< statement > &owner) noexcept
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
int size () const noexcept
 
bool empty () const noexcept
 
cell operator[] (int idx) const noexcept
 
const_iterator begin () const noexcept
 
const_iterator cbegin () const noexcept
 
const_iterator end () const noexcept
 
const_iterator cend () const noexcept
 
const_reverse_iterator rbegin () const noexcept
 
const_reverse_iterator crbegin () const noexcept
 
const_reverse_iterator rend () const noexcept
 
const_reverse_iterator crend () const noexcept
 

Protected Attributes

const statement_owner
 

Detailed Description

Row result of a statement.

The row is a random access STL range of cell objects.

Note that the actual row represented by this class is the current statement result and changes every time the statement makes a statement::step.

#include <thinsqlitepp/statement.hpp>

Constructor & Destructor Documentation

◆ row()

row ( const statement * owner)
inlinenoexcept

Construct a row for a given statement.

The statement is held by reference and must exist as long as this object is alive