|
|
| Table (std::string title="", bool right_justify=true) |
| | Create empty table.
|
| |
|
| Table (const Table &table)=default |
| | Copy constructor.
|
| |
|
| Table (Table &&table)=default |
| | Move constructor.
|
| |
|
| ~Table ()=default |
| | Destructor.
|
| |
|
Table & | operator= (const Table &table)=default |
| | Assignment operator.
|
| |
|
Table & | operator= (Table &&table)=default |
| | Move assignment.
|
| |
| void | set (std::string row, std::string col, std::variant< std::string, int, double > value) |
| |
| std::variant< std::string, int, double > | get (std::string row, std::string col) const |
| |
| Table | reduce (MPI_Comm comm, Reduction reduction) const |
| |
|
std::string | str () const |
| | Return string representation of the table.
|
| |
This class provides storage and pretty-printing for tables. Example usage:
Table table("Timings"); table.set("Foo", "Assemble", 0.010); table.set("Foo", "Solve", 0.020); table.set("Bar", "Assemble", 0.011); table.set("Bar", "Solve", 0.019);