Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
data_table_json.hpp File Reference

Precision-preserving JSON snapshots of typed result tables. More...

#include "data_table.hpp"
Include dependency graph for data_table_json.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  uni20::presentation::data_json_options
 Ordered JSON column selection. Empty selects every column; display precision is never applied. More...
 
struct  uni20::presentation::data_table_detail::json_output
 

Namespaces

namespace  uni20
 
namespace  uni20::presentation
 
namespace  uni20::presentation::data_table_detail
 

Functions

template<DataTableValue... Ts>
void uni20::presentation::write_json (std::ostream &stream, data_table< Ts... > const &table, data_json_options const &options={})
 Write an ordered schema and typed rows, preserving real and integer precision.
 
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)
 
template<DataTableValue T>
void uni20::presentation::data_table_detail::write_json_column (json_output &out, data_column< T > const &column)
 
void uni20::presentation::data_table_detail::write_json_end (json_output &out, table_metadata const *summary)
 
void uni20::presentation::data_table_detail::write_json_metadata (json_output &out, table_metadata const &metadata)
 
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)
 
void uni20::presentation::data_table_detail::write_json_string (std::ostream &out, std::string_view value)
 
template<typename T >
void uni20::presentation::data_table_detail::write_json_value (json_output &out, T const &value)
 

Detailed Description

Precision-preserving JSON snapshots of typed result tables.