|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
A snapshot over a shared, immutable vector of typed rows. More...
#include <query.hpp>
Public Member Functions | |
| RowsSnapshot (std::shared_ptr< std::vector< Row > const > rows, RowKey< Row > key, std::shared_ptr< std::vector< detail::CellReader< Row > > const > readers) | |
Wraps rows. | |
| std::size_t | rowCount () const override |
| The number of rows. | |
| RowId | rowId (std::size_t row) const override |
| A row's key. | |
| Cell | cell (std::size_t row, std::size_t column) const override |
| One cell. | |
| void | readColumn (std::size_t column, ColumnSink &sink, std::size_t first, std::size_t last) const override |
Hands rows [first, last) of column to sink in runs. | |
Additional Inherited Members | |
| Protected Member Functions inherited from morph::table::RowSnapshot | |
| RowSnapshot (RowSnapshot const &)=default | |
| Copies the base of a snapshot: a derived snapshot makes a changed copy of itself this way. | |
| RowSnapshot (RowSnapshot &&)=default | |
| Moves the base of a snapshot. | |
| RowSnapshot & | operator= (RowSnapshot const &)=default |
| Copy-assigns the base of a snapshot. | |
| RowSnapshot & | operator= (RowSnapshot &&)=default |
| Move-assigns the base of a snapshot. | |
A snapshot over a shared, immutable vector of typed rows.
| Row | A glaze-reflectable aggregate. |
|
inline |
|
inlinenodiscardoverridevirtual |
|
inlinenodiscardoverridevirtual |
|
inlinenodiscardoverridevirtual |
One cell.
| row | Row index. |
| column | Column index. |
Implements morph::table::RowSnapshot.
|
inlineoverridevirtual |
Hands rows [first, last) of column to sink in runs.
| column | Column index. |
| sink | Receives the cells. |
| first | First row. |
| last | One past the last row. |
Reimplemented from morph::table::RowSnapshot.