41 Table(std::string title =
"",
bool right_justify =
true);
62 void set(
const std::string& row,
const std::string& col,
63 std::variant<std::string, int, double> value);
69 std::variant<std::string, int, double>
get(
const std::string& row,
70 const std::string& col)
const;
82 std::string
str()
const;
86 std::vector<std::string> _rows, _cols;
89 std::map<std::pair<std::string, std::string>,
90 std::variant<std::string, int, double>>
Table & operator=(Table &&table)=default
Move assignment.
Table(const Table &table)=default
Copy constructor.
void set(const std::string &row, const std::string &col, std::variant< std::string, int, double > value)
Definition Table.cpp:39
~Table()=default
Destructor.
Reduction
Definition Table.h:34
std::string name
Table name.
Definition Table.h:79
std::variant< std::string, int, double > get(const std::string &row, const std::string &col) const
Definition Table.cpp:55
Table(Table &&table)=default
Move constructor.
Table(std::string title="", bool right_justify=true)
Create empty table.
Definition Table.cpp:33
std::string str() const
Return string representation of the table.
Definition Table.cpp:200
Table reduce(MPI_Comm comm, Reduction reduction) const
Definition Table.cpp:69
Table & operator=(const Table &table)=default
Assignment operator.
Top-level namespace.
Definition defines.h:12