|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
One column's keys, built once and shared, immutable, between jobs. More...
#include <sort.hpp>
Public Member Functions | |
| bool | usesComparator () const noexcept |
| Whether this column orders Custom cells through a comparator. | |
| void | set (std::size_t row, Cell const &cell, ColumnInfo const &info, Services const &services) |
Rebuilds the key of one row from cell. | |
Static Public Member Functions | |
| static KeyColumn | forColumn (ColumnInfo const &info, Services const &services, std::size_t rows) |
An empty key column for info, sized for rows rows. | |
Public Attributes | |
| ColumnKind | kind = ColumnKind::Text |
| The column's kind. | |
| std::vector< CellState > | states |
| The state of each row's cell. | |
| std::vector< std::int64_t > | ints |
| Integer keys. | |
| std::vector< math::Rational > | exact |
| Exact keys. | |
| std::vector< double > | reals |
| Floating-point keys. | |
| std::vector< std::string > | text |
| Collation keys. | |
| std::vector< std::string > | folded |
| Primary-strength folds, which text filters match. | |
| std::vector< std::string > | raw |
| The text as the source gave it, for case-sensitive filters. | |
| std::vector< Cell > | cells |
| Cells of a Custom column with a comparator. | |
| CellComparator | comparator |
| The comparator of a Custom column, or empty. | |
One column's keys, built once and shared, immutable, between jobs.
Exactly one of the typed arrays is filled, chosen by the column's kind: ints for Integer, Key, Date, DateTime and Bool; exact for Decimal and Quantity; reals for Number; text, folded and raw for Text; cells for a Custom column with a known comparator, and text for one without (ordered by display text).
|
inlinenodiscardnoexcept |
Whether this column orders Custom cells through a comparator.
|
inlinestaticnodiscard |
|
inline |
| ColumnKind morph::table::KeyColumn::kind = ColumnKind::Text |
| std::vector<CellState> morph::table::KeyColumn::states |
| std::vector<std::int64_t> morph::table::KeyColumn::ints |
| std::vector<math::Rational> morph::table::KeyColumn::exact |
| std::vector<double> morph::table::KeyColumn::reals |
| std::vector<std::string> morph::table::KeyColumn::text |
| std::vector<std::string> morph::table::KeyColumn::folded |
| std::vector<std::string> morph::table::KeyColumn::raw |
| std::vector<Cell> morph::table::KeyColumn::cells |
| CellComparator morph::table::KeyColumn::comparator |