Table.h¶
Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
-
class
Table
¶ Parent class(es)
This class provides storage and pretty-printing for tables. Example usage:
Table table(“Timings”);
table(“Eigen”, “Assemble”) = 0.010; table(“Eigen”, “Solve”) = 0.020; table(“PETSc”, “Assemble”) = 0.011; table(“PETSc”, “Solve”) = 0.019; table(“Tpetra”, “Assemble”) = 0.012; table(“Tpetra”, “Solve”) = 0.018;
info(table);
-
Table
(std::string title = "", bool right_justify = true)¶ Create empty table
-
TableEntry
operator()
(std::string row, std::string col)¶ Return table entry
-
void
set
(std::string row, std::string col, int value)¶ Set value of table entry
-
void
set
(std::string row, std::string col, std::size_t value)¶ Set value of table entry
-
void
set
(std::string row, std::string col, double value)¶ Set value of table entry
-
void
set
(std::string row, std::string col, std::string value)¶ Set value of table entry
-
std::string
get
(std::string row, std::string col) const¶ Get value of table entry
-
double
get_value
(std::string row, std::string col) const¶ Get value of table entry
-
std::string
str
(bool verbose) const¶ Return informal string representation (pretty-print)
-
std::string
str_latex
() const¶ Return informal string representation for LaTeX
-
-
class
TableEntry
¶ This class represents an entry in a Table
-
const TableEntry &
operator=
(std::size_t value)¶ Assign value to table entry
-
const TableEntry &
operator=
(int value)¶ Assign value to table entry
-
const TableEntry &
operator=
(double value)¶ Assign value to table entry
-
const TableEntry &
operator=
(std::string value)¶ Assign value to table entry
-
operator std::string
() const¶ Cast to entry value
-
const TableEntry &