|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
The rows of a table, as the engine reads them. More...
#include <data_source.hpp>
Public Member Functions | |
| virtual std::span< ColumnInfo const > | columns () const =0 |
| The table's columns. | |
| virtual std::shared_ptr< RowSnapshot const > | snapshot () const =0 |
| The current rows as an immutable snapshot. Taking one is cheap. | |
| virtual void | subscribe (ChangeListener &listener)=0 |
Registers listener for change notifications. | |
| virtual void | unsubscribe (ChangeListener &listener)=0 |
Removes listener. | |
The rows of a table, as the engine reads them.
Owner-affine: every member is called on the owner thread. The engine reads cells only from snapshot(), which it may hand to a worker.
Definition at line 732 of file data_source.hpp.
|
nodiscardpure virtual |
The table's columns.
Implemented in morph::table::RowsSource< Row >, and morph::table::VectorSource.
|
nodiscardpure virtual |
The current rows as an immutable snapshot. Taking one is cheap.
Implemented in morph::table::RowsSource< Row >, and morph::table::VectorSource.
|
pure virtual |
Registers listener for change notifications.
| listener | Receives notifications until unsubscribe; must outlive the subscription. |
Implemented in morph::table::RowsSource< Row >, and morph::table::VectorSource.
|
pure virtual |
Removes listener.
| listener | A listener previously subscribed. |
Implemented in morph::table::RowsSource< Row >, and morph::table::VectorSource.