Table Class Reference
Used to store computed data in columns. More...
#include <Table.hpp>
Classes | |
struct | OutputOptions |
Used to specify formatting options when printing or outputting the Table object. More... | |
Public Member Functions | |
Table () | |
Construct a default Table object. | |
auto | columns () const -> Dict< String, TableColumn > const & |
Get the columns in the Table object. | |
auto | column (String const &columnname) const -> TableColumn const & |
Get a constant reference to a column in the table with given name. | |
auto | column (String const &columnname) -> TableColumn & |
Get a mutable reference to a column in the table with given name. | |
auto | operator[] (String const &columnname) const -> Deque< double > const & |
Get a constant reference to a column in the table with given name. | |
auto | operator[] (String const &columnname) -> Deque< double > & |
Get a mutable reference to a column in the table with given name. | |
auto | rows () const -> Index |
Get the number of rows in the table (i.e., the length of the longest column in the table). | |
auto | cols () const -> Index |
Get the number of columns in the table. | |
auto | dump (OutputOptions const &outputopts={}) const -> String |
Assemble a string representation of the Table object. More... | |
auto | save (String const &filepath, OutputOptions const &outputopts={}) const -> void |
Save the Table object to a file. More... | |
Detailed Description
Used to store computed data in columns.
Member Function Documentation
◆ dump()
auto dump | ( | OutputOptions const & | outputopts = {} | ) | const -> String |
Assemble a string representation of the Table object.
- Parameters
-
outputopts The formatting options for the output operation.
◆ save()
auto save | ( | String const & | filepath, |
OutputOptions const & | outputopts = {} |
||
) | const -> void |
Save the Table object to a file.
- Parameters
-
filepath The path to the file that will be created, including its file name (e.g., table.txt
,/home/username/downloads/table.txt
).outputopts The formatting options for the output operation.
- Warning
- Ensure that the path given exists; no directories are created in this method call.
The documentation for this class was generated from the following file:
- Reaktoro/Common/Table.hpp