|
Uni20
Asynchronous tensor and runtime library.
|
Schema-first table for progress output where rows are emitted immediately. More...
#include <display.hpp>
Public Member Functions | |
| streaming_table & | column (std::string heading, column_format format) |
| Add a column whose width and alignment are inferred from its format. | |
| streaming_table & | column (std::string heading, column_width width_spec, column_format format) |
| Add a column whose alignment is inferred from its format. | |
| streaming_table & | column (std::string heading, column_width width_spec=width::share(), presentation::table_alignment alignment=presentation::table_alignment::right, column_format format={}) |
| streaming_table & | column (std::string heading, presentation::table_alignment alignment) |
| Add a flexible-width column with an explicit alignment. | |
| streaming_table & | column (std::string heading, presentation::table_alignment alignment, column_format format) |
| Add a flexible-width column with explicit alignment and format. | |
| streaming_table & | header_separator (bool enabled=true) |
| streaming_table & | output (sink destination, presentation::output_policy policy) |
| Route this table through an instance-owned sink and policy, without changing global display routing. | |
| void | row (std::initializer_list< std::string > cells, std::source_location where=std::source_location::current()) |
| void | row (std::vector< formatted_cell > cells, std::source_location where=std::source_location::current()) |
| Emit preformatted cells without discarding their numeric alignment semantics. | |
| void | row (std::vector< presentation::styled_text > cells, std::source_location where=std::source_location::current()) |
| void | row (std::vector< std::string > cells, std::source_location where=std::source_location::current()) |
| template<typename... Values> | |
| void | row (Values &&... values) |
| streaming_table (std::string title={}, stream destination=stream::out) | |
| streaming_table & | wrap_width (std::size_t width) |
Schema-first table for progress output where rows are emitted immediately.
Switches to vertical key/value output when a cell marked keep_together cannot fit its column. Such cells are never split, even when one value exceeds the available terminal width.
|
explicit |
| streaming_table & uni20::display::streaming_table::column | ( | std::string | heading, |
| column_format | format | ||
| ) |
Add a column whose width and alignment are inferred from its format.
Numeric formats use decimal alignment and non-greedy fit width. Text and automatic formats use shared width.
| streaming_table & uni20::display::streaming_table::column | ( | std::string | heading, |
| column_width | width_spec, | ||
| column_format | format | ||
| ) |
Add a column whose alignment is inferred from its format.
| streaming_table & uni20::display::streaming_table::column | ( | std::string | heading, |
| column_width | width_spec = width::share(), |
||
| presentation::table_alignment | alignment = presentation::table_alignment::right, |
||
| column_format | format = {} |
||
| ) |
| streaming_table & uni20::display::streaming_table::column | ( | std::string | heading, |
| presentation::table_alignment | alignment | ||
| ) |
Add a flexible-width column with an explicit alignment.
| streaming_table & uni20::display::streaming_table::column | ( | std::string | heading, |
| presentation::table_alignment | alignment, | ||
| column_format | format | ||
| ) |
Add a flexible-width column with explicit alignment and format.
| streaming_table & uni20::display::streaming_table::header_separator | ( | bool | enabled = true | ) |
| streaming_table & uni20::display::streaming_table::output | ( | sink | destination, |
| presentation::output_policy | policy | ||
| ) |
Route this table through an instance-owned sink and policy, without changing global display routing.
| void uni20::display::streaming_table::row | ( | std::initializer_list< std::string > | cells, |
| std::source_location | where = std::source_location::current() |
||
| ) |
| void uni20::display::streaming_table::row | ( | std::vector< formatted_cell > | cells, |
| std::source_location | where = std::source_location::current() |
||
| ) |
Emit preformatted cells without discarding their numeric alignment semantics.
| void uni20::display::streaming_table::row | ( | std::vector< presentation::styled_text > | cells, |
| std::source_location | where = std::source_location::current() |
||
| ) |
| void uni20::display::streaming_table::row | ( | std::vector< std::string > | cells, |
| std::source_location | where = std::source_location::current() |
||
| ) |
| void uni20::display::streaming_table::row | ( | Values &&... | values | ) |
| streaming_table & uni20::display::streaming_table::wrap_width | ( | std::size_t | width | ) |