Tables in output file sections work differently than tables dumped to the terminal window. These tables will take in an array of data with some dimensions and then find the best way to organize it, storing all columns and rows as a series of strings.
More...
|
int | getColumnCount () const |
| Get the number of columns.
|
|
int | getHeaderRowCount () const |
| Get the number of header rows.
|
|
int | getDataRowCount () const |
| Get the number of data rows.
|
|
int | getColumnWidth (int column_index) const |
| Get the width of a particular column.
|
|
int | getTableWidth () const |
| Get the internal format width setting.
|
|
TableContentKind | getContentKind () const |
| Get the type of content in the table. All content is stored as strings, but depending on whether it started as real numbers, integers, or string data there may be significance.
|
|
const std::string & | getValue (size_t row_index, size_t column_index) const |
| Get the rendered data for a particular column and row.
|
|
void | setVariableName (const std::string &variable_name_in) |
| Set the variable name associated with this table.
|
|
void | unprotectContent () |
| Convert a table of strings into a table of unprotected strings (unprotected by comment characters if the table is printed to a file intended to be parsed by third-party programs).
|
|
|
| ReportTable (const std::vector< std::string > &data_in, const std::vector< std::string > &column_headings, const std::string &variable_name_in=std::string(""), int format_width_in=default_output_file_width, const std::vector< JustifyText > &alignments={}, bool enforce_format_width=false) |
| The constructor takes multiple input formats but converts all data to strings for internal storage, negating the need for templating.
|
|
| ReportTable (const std::vector< double > &data_in, const std::vector< std::string > &column_headings, double precision=1.0e-6, const std::string &variable_name_in=std::string(""), int format_width_in=default_output_file_width, const std::vector< JustifyText > &alignments={}) |
|
| ReportTable (const std::vector< double > &data_in, const std::vector< std::string > &column_headings, const std::vector< double > &precision, const std::string &variable_name_in=std::string(""), int format_width_in=default_output_file_width, const std::vector< JustifyText > &alignments={}) |
|
| ReportTable (const std::vector< double > &data_in, const std::vector< std::string > &column_headings, const std::vector< int > &decimal_places, const std::string &variable_name_in=std::string(""), int format_width_in=default_output_file_width, const std::vector< JustifyText > &alignments={}) |
|
| ReportTable (const std::vector< int > &data_in, const std::vector< std::string > &column_headings, const std::string &variable_name_in=std::string(""), int format_width_in=default_output_file_width, const std::vector< JustifyText > &alignments={}) |
|
| ReportTable (const std::vector< llint > &data_in, const std::vector< std::string > &column_headings, const std::string &variable_name_in=std::string(""), int format_width_in=default_output_file_width, const std::vector< JustifyText > &alignments={}) |
|
| ReportTable (const std::vector< char4 > &data_in, const std::vector< std::string > &column_headings, const std::string &variable_name_in=std::string(""), int format_width_in=default_output_file_width, const std::vector< JustifyText > &alignments={}) |
|
|
| ReportTable (const ReportTable &original)=default |
| With no const members or pointers to repair and all Standard Template Library components, the ReportTable can be copied or moved using default constructors and assignement operators.
|
|
| ReportTable (ReportTable &&original)=default |
|
ReportTable & | operator= (const ReportTable &original)=default |
|
ReportTable & | operator= (ReportTable &&original)=default |
|
|
std::string | printTable (OutputSyntax style, int width=-1, int data_row_start=0, int data_row_end=-1) const |
| Print the table based on some external directives.
|
|
void | printTable (std::ofstream *foutp, OutputSyntax style, int width=-1, int data_row_start=0, int data_row_end=-1) const |
|
void | printTable (const std::string &file_name, PrintSituation expectation, OutputSyntax style, int width=-1, int data_row_start=0, int data_row_end=-1) const |
|
Tables in output file sections work differently than tables dumped to the terminal window. These tables will take in an array of data with some dimensions and then find the best way to organize it, storing all columns and rows as a series of strings.