morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::table::Page< Row > Struct Template Reference

One page of a list action's reply. More...

#include <query.hpp>

Public Attributes

std::vector< Row > rows
 The rows, in view order.
std::optional< std::int64_t > total
 Rows in the whole filtered view; absent when the server did not count them or the count is above its cap.
std::int64_t offset = 0
 The view row of rows[0].

Detailed Description

template<typename Row>
struct morph::table::Page< Row >

One page of a list action's reply.

Template Parameters
RowThe row type.

Definition at line 83 of file query.hpp.

Member Data Documentation

◆ rows

template<typename Row>
std::vector<Row> morph::table::Page< Row >::rows

The rows, in view order.

Definition at line 85 of file query.hpp.

◆ total

template<typename Row>
std::optional<std::int64_t> morph::table::Page< Row >::total

Rows in the whole filtered view; absent when the server did not count them or the count is above its cap.

Definition at line 88 of file query.hpp.

◆ offset

template<typename Row>
std::int64_t morph::table::Page< Row >::offset = 0

The view row of rows[0].

Definition at line 90 of file query.hpp.


The documentation for this struct was generated from the following file: