Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Classes | Concepts | Typedefs | Functions | Variables
uni20::presentation::data_table_detail Namespace Reference

Classes

class  classic_numeric_locale
 
class  delimited_sink
 
struct  json_output
 
class  json_sink_adapter
 
struct  optional_traits
 
struct  optional_traits< std::optional< T > >
 
struct  resolved_projection
 
class  terminal_sink_adapter
 

Concepts

concept  integer
 
concept  supported_real
 

Typedefs

template<typename T >
using value_type = typename optional_traits< T >::value_type
 

Functions

template<typename To , typename From >
consteval bool accepts ()
 
template<typename T >
std::string cell_text (T const &value, data_column_display const &display, bool machine)
 
void check_output (std::ostream &out)
 
template<typename To , typename From >
requires (accepts<To, From>())
To convert (From &&input)
 
template<typename T >
std::string export_text (T const &value, data_column_display const &display, delimited_options const &options)
 
template<Real T>
std::string real_text (T value, scalar_format_options options)
 
template<typename Schema >
resolved_projection resolve_projection (Schema const &schema, table_projection const &options)
 
template<typename T >
display::formatted_cell terminal_cell (T const &value, data_column_display const &format)
 
void validate_identifier (std::string_view identifier)
 
void validate_numeric_precision (real_format_notation notation, int digits)
 
template<typename Schema , typename Row , typename Function >
void visit_cells (Schema const &schema, Row const &row, Function &&function)
 
template<typename Schema , typename Function >
void visit_column (Schema const &schema, std::size_t index, Function &&function)
 
template<typename Schema , typename Row , typename Function >
void visit_selected (Schema const &schema, Row const &row, resolved_projection const &selection, Function &&function)
 
template<DataTableValue... Ts>
void write_delimited (std::ostream &out, data_table< Ts... > const &table, char delimiter, delimited_options const &options)
 
template<typename Schema >
void write_delimited_header (std::ostream &out, Schema const &schema, resolved_projection const &selection, char delimiter)
 
template<typename Schema , typename Row >
void write_delimited_row (std::ostream &out, Schema const &schema, Row const &row, resolved_projection const &selection, char delimiter, delimited_options const &options)
 
void write_field (std::ostream &out, std::string_view field, char delimiter, bool quote_empty)
 
template<typename Schema >
void write_json_begin (json_output &out, std::string const &title, Schema const &schema, table_metadata const &metadata, resolved_projection const &selection, data_sink_start start)
 
template<DataTableValue T>
void write_json_column (json_output &out, data_column< T > const &column)
 
void write_json_end (json_output &out, table_metadata const *summary)
 
void write_json_metadata (json_output &out, table_metadata const &metadata)
 
template<typename Schema , typename Row >
void write_json_row (json_output &out, Schema const &schema, Row const &row, resolved_projection const &selection)
 
void write_json_string (std::ostream &out, std::string_view value)
 
template<typename T >
void write_json_value (json_output &out, T const &value)
 

Variables

template<typename T >
constexpr bool half_integer = false
 
template<std::signed_integral T>
constexpr bool half_integer< basic_half_int< T > > = true
 
template<typename T >
constexpr bool runtime_real = false
 

Typedef Documentation

◆ value_type

template<typename T >
using uni20::presentation::data_table_detail::value_type = typedef typename optional_traits<T>::value_type

Function Documentation

◆ accepts()

template<typename To , typename From >
consteval bool uni20::presentation::data_table_detail::accepts ( )

◆ cell_text()

template<typename T >
std::string uni20::presentation::data_table_detail::cell_text ( T const &  value,
data_column_display const &  display,
bool  machine 
)

◆ check_output()

void uni20::presentation::data_table_detail::check_output ( std::ostream &  out)

◆ convert()

template<typename To , typename From >
requires (accepts<To, From>())
To uni20::presentation::data_table_detail::convert ( From &&  input)

◆ export_text()

template<typename T >
std::string uni20::presentation::data_table_detail::export_text ( T const &  value,
data_column_display const &  display,
delimited_options const &  options 
)

◆ real_text()

template<Real T>
std::string uni20::presentation::data_table_detail::real_text ( T  value,
scalar_format_options  options 
)

◆ resolve_projection()

template<typename Schema >
resolved_projection uni20::presentation::data_table_detail::resolve_projection ( Schema const &  schema,
table_projection const &  options 
)

◆ terminal_cell()

template<typename T >
display::formatted_cell uni20::presentation::data_table_detail::terminal_cell ( T const &  value,
data_column_display const &  format 
)

◆ validate_identifier()

void uni20::presentation::data_table_detail::validate_identifier ( std::string_view  identifier)

◆ validate_numeric_precision()

void uni20::presentation::data_table_detail::validate_numeric_precision ( real_format_notation  notation,
int  digits 
)

◆ visit_cells()

template<typename Schema , typename Row , typename Function >
void uni20::presentation::data_table_detail::visit_cells ( Schema const &  schema,
Row const &  row,
Function &&  function 
)

◆ visit_column()

template<typename Schema , typename Function >
void uni20::presentation::data_table_detail::visit_column ( Schema const &  schema,
std::size_t  index,
Function &&  function 
)

◆ visit_selected()

template<typename Schema , typename Row , typename Function >
void uni20::presentation::data_table_detail::visit_selected ( Schema const &  schema,
Row const &  row,
resolved_projection const &  selection,
Function &&  function 
)

◆ write_delimited()

template<DataTableValue... Ts>
void uni20::presentation::data_table_detail::write_delimited ( std::ostream &  out,
data_table< Ts... > const &  table,
char  delimiter,
delimited_options const &  options 
)

◆ write_delimited_header()

template<typename Schema >
void uni20::presentation::data_table_detail::write_delimited_header ( std::ostream &  out,
Schema const &  schema,
resolved_projection const &  selection,
char  delimiter 
)

◆ write_delimited_row()

template<typename Schema , typename Row >
void uni20::presentation::data_table_detail::write_delimited_row ( std::ostream &  out,
Schema const &  schema,
Row const &  row,
resolved_projection const &  selection,
char  delimiter,
delimited_options const &  options 
)

◆ write_field()

void uni20::presentation::data_table_detail::write_field ( std::ostream &  out,
std::string_view  field,
char  delimiter,
bool  quote_empty 
)

◆ write_json_begin()

template<typename Schema >
void uni20::presentation::data_table_detail::write_json_begin ( json_output &  out,
std::string const &  title,
Schema const &  schema,
table_metadata const &  metadata,
resolved_projection const &  selection,
data_sink_start  start 
)

◆ write_json_column()

template<DataTableValue T>
void uni20::presentation::data_table_detail::write_json_column ( json_output &  out,
data_column< T > const &  column 
)

◆ write_json_end()

void uni20::presentation::data_table_detail::write_json_end ( json_output &  out,
table_metadata const *  summary 
)
inline

◆ write_json_metadata()

void uni20::presentation::data_table_detail::write_json_metadata ( json_output &  out,
table_metadata const &  metadata 
)
inline

◆ write_json_row()

template<typename Schema , typename Row >
void uni20::presentation::data_table_detail::write_json_row ( json_output &  out,
Schema const &  schema,
Row const &  row,
resolved_projection const &  selection 
)

◆ write_json_string()

void uni20::presentation::data_table_detail::write_json_string ( std::ostream &  out,
std::string_view  value 
)

◆ write_json_value()

template<typename T >
void uni20::presentation::data_table_detail::write_json_value ( json_output &  out,
T const &  value 
)

Variable Documentation

◆ half_integer

template<typename T >
constexpr bool uni20::presentation::data_table_detail::half_integer = false
inlineconstexpr

◆ half_integer< basic_half_int< T > >

template<std::signed_integral T>
constexpr bool uni20::presentation::data_table_detail::half_integer< basic_half_int< T > > = true
inlineconstexpr

◆ runtime_real

template<typename T >
constexpr bool uni20::presentation::data_table_detail::runtime_real = false
inlineconstexpr