|
| | RowsSource (std::shared_ptr< std::vector< Row > const > rows, RowKey< Row > key, std::map< std::string, ColumnKind, std::less<> > const &kinds={}, std::map< std::string, std::string, std::less<> > const &comparators={}) |
| | Builds the source.
|
| std::span< ColumnInfo const > | columns () const override |
| | The columns.
|
| std::shared_ptr< RowSnapshot const > | snapshot () const override |
| | The current rows; a pointer copy.
|
| void | subscribe (ChangeListener &listener) override |
| | Registers listener.
|
| void | unsubscribe (ChangeListener &listener) override |
| | Removes listener; safe from inside a notification.
|
| void | setRows (std::shared_ptr< std::vector< Row > const > rows) |
| | Replaces the rows and notifies Reset.
|
template<typename Row>
class morph::table::RowsSource< Row >
A DataSource over typed rows: one column per key glaze writes, its kind inferred from the value's type.
bool is Bool; other integers Integer (an unsigned value above INT64_MAX is an invalid cell); floating point Number; Rational Decimal; a Quantity Quantity; DateTime and Timestamp DateTime; a type glaze writes as one of its members (Ranged, Choice, Tagged) that member's kind; everything else Text (an enum by its glaze name). A std::optional member's empty state, or anything glaze writes as null, is an empty cell. A row with a glz::meta has the columns its meta names. setRows replaces the rows and notifies Reset.
- Template Parameters
-
| Row | A glaze-reflectable aggregate. |
Definition at line 575 of file query.hpp.