Functions | |
| void | collapse () |
| GenericContainer const & | write_formatted_data (ostream_type &stream, char const delimiter='\t') const |
| GenericContainer const & | writeFormattedData (ostream_type &stream, char const delimiter='\t') const |
| GenericContainer & | read_formatted_data (istream_type &stream, char const commentChars[]="#%", char const delimiters[]=" \t") |
| GenericContainer & | readFormattedData (istream_type &stream, char const commentChars[]="#%", char const delimiters[]=" \t") |
| GenericContainer & | read_formatted_data (char const fname[], char const commentChars[]="#%", char const delimiters[]=" \t") |
| GenericContainer & | readFormattedData (char const fname[], char const commentChars[]="#%", char const delimiters[]=" \t") |
| GenericContainer & | read_formatted_data2 (istream_type &stream, char const commentChars[]="#%", char const delimiters[]=" \t", GenericContainer ptr_pars[]=nullptr) |
| GenericContainer & | readFormattedData2 (istream_type &stream, char const commentChars[]="#%", char const delimiters[]=" \t", GenericContainer ptr_pars[]=nullptr) |
| GenericContainer & | read_formatted_data2 (char const fname[], char const commentChars[]="#%", char const delimiters[]=" \t", GenericContainer ptr_pars[]=nullptr) |
| GenericContainer & | readFormattedData2 (char const fname[], char const commentChars[]="#%", char const delimiters[]=" \t", GenericContainer ptr_pars[]=nullptr) |
| void collapse | ( | ) |
Collapse heterogeneous vectors into a unified type. Attempts to collapse nested vectors into a matrix when possible.
| GenericContainer & read_formatted_data | ( | char const | fname[], |
| char const | commentChars[] = "#%", | ||
| char const | delimiters[] = " \t" ) |
Read regular formatted data from file fname to GenericContainer.
After successful read GenericContainer will be a map which contains the fields:
| fname | file name to be read |
| commentChars | lines beginning with one of this chars are treated as comments. Default are # and % |
| delimiters | characters used as delimiter for headers |
| GenericContainer & read_formatted_data | ( | istream_type & | stream, |
| char const | commentChars[] = "#%", | ||
| char const | delimiters[] = " \t" ) |
Read regular formatted data from stream to GenericContainer.
After successful read GenericContainer will be a map which contains the fields:
| stream | stream to write the output |
| commentChars | lines beginning with one of this chars are treated as comments. Default are # and % |
| delimiters | characters used as delimiter for headers |
| GenericContainer & read_formatted_data2 | ( | char const | fname[], |
| char const | commentChars[] = "#%", | ||
| char const | delimiters[] = " \t", | ||
| GenericContainer | ptr_pars[] = nullptr ) |
Read regular formatted data from file fname to GenericContainer.
After successful read GenericContainer will be a map which contains the fields:
| fname | file name to be read |
| commentChars | lines beginning with one of this chars are treated as comments. Default are # and % |
| delimiters | characters used as delimiter for headers |
| ptr_pars | pointer to a GenericContainer which store the parameter parsed in the comment part of the file |
| GenericContainer & read_formatted_data2 | ( | istream_type & | stream, |
| char const | commentChars[] = "#%", | ||
| char const | delimiters[] = " \t", | ||
| GenericContainer | ptr_pars[] = nullptr ) |
Read regular formatted data from stream to GenericContainer.
After successful read GenericContainer will be a map which contains the fields:
| stream | stream to write the output |
| commentChars | lines beginning with one of this chars are treated as comments. Default are # and % |
| delimiters | characters used as delimiter for headers |
| ptr_pars | pointer to a GenericContainer which store poarameter parsed in the comment part of the file |
| GenericContainer & readFormattedData | ( | char const | fname[], |
| char const | commentChars[] = "#%", | ||
| char const | delimiters[] = " \t" ) |
| GenericContainer & readFormattedData | ( | istream_type & | stream, |
| char const | commentChars[] = "#%", | ||
| char const | delimiters[] = " \t" ) |
| GenericContainer & readFormattedData2 | ( | char const | fname[], |
| char const | commentChars[] = "#%", | ||
| char const | delimiters[] = " \t", | ||
| GenericContainer | ptr_pars[] = nullptr ) |
| GenericContainer & readFormattedData2 | ( | istream_type & | stream, |
| char const | commentChars[] = "#%", | ||
| char const | delimiters[] = " \t", | ||
| GenericContainer | ptr_pars[] = nullptr ) |
| GenericContainer const & write_formatted_data | ( | ostream_type & | stream, |
| char const | delimiter = '\t' ) const |
Write GenericContainer as regular formatted data to stream.
GenericContainer must be a map which contains the fields:
"data" this element must be a vector_type which contais the vectors which are the columns of the data to be saved. Each column can be of type
all the vector must have the same size.
| stream | stream to write the output |
| delimiter | desired delimiter (optional). Default is tab. |
| GenericContainer const & writeFormattedData | ( | ostream_type & | stream, |
| char const | delimiter = '\t' ) const |