Classes | Namespaces | Functions
FormattedTable.h File Reference

Go to the source code of this file.


class  FormattedTable
 This class is used for building, formatting, and outputting tables of numbers. More...


 The following methods are specializations for using the libMesh::Parallel::packed_range_* routines for std::strings.


void dataStore (std::ostream &stream, FormattedTable &table, void *context)
void dataLoad (std::istream &stream, FormattedTable &v, void *context)

Function Documentation

void dataLoad ( std::istream &  stream,
FormattedTable v,
void *  context 

Definition at line 47 of file FormattedTable.C.

48 {
49  loadHelper(stream, table._data, context);
50  loadHelper(stream, table._align_widths, context);
51  loadHelper(stream, table._column_names, context);
52  loadHelper(stream, table._output_row_index, context);
54  // Don't assume that the stream is open if we've restored.
55  table._stream_open = false;
56 }
void loadHelper(std::istream &stream, P &data, void *context)
Scalar helper routine.
Definition: DataIO.h:592
void dataStore ( std::ostream &  stream,
FormattedTable table,
void *  context 

Definition at line 37 of file FormattedTable.C.

38 {
39  storeHelper(stream, table._data, context);
40  storeHelper(stream, table._align_widths, context);
41  storeHelper(stream, table._column_names, context);
42  storeHelper(stream, table._output_row_index, context);
43 }
std::vector< std::pair< Real, std::map< std::string, Real > > > _data
Data structure for the console table: The first part of the pair tracks the independent variable (nor...
std::size_t _output_row_index
Keeps track of the index indicating which vector elements have been output.
void storeHelper(std::ostream &stream, P &data, void *context)
Scalar helper routine.
Definition: DataIO.h:528
std::map< std::string, unsigned int > _align_widths
Alignment widths (only used if asked to print aligned to CSV output)
std::vector< std::string > _column_names
The set of column names updated when data is inserted through the setter methods. ...