27 #include <dolfin/common/Variable.h> 54 Table(std::string title=
"",
bool right_justify=
true);
63 void set(std::string row, std::string col,
int value);
66 void set(std::string row, std::string col, std::size_t value);
69 void set(std::string row, std::string col,
double value);
72 void set(std::string row, std::string col, std::string value);
75 std::string
get(std::string row, std::string col)
const;
78 double get_value(std::string row, std::string col)
const;
84 std::string
str(
bool verbose)
const;
92 std::vector<std::string> rows;
93 std::set<std::string> row_set;
96 std::vector<std::string> cols;
97 std::set<std::string> col_set;
100 std::map<std::pair<std::string, std::string>, std::string> values;
103 std::map<std::pair<std::string, std::string>,
double> dvalues;
141 operator std::string()
const;
TableEntry operator()(std::string row, std::string col)
Return table entry.
Definition: Table.cpp:47
const Table & operator=(const Table &table)
Assignment operator.
Definition: Table.cpp:174
double get_value(std::string row, std::string col) const
Get value of table entry.
Definition: Table.cpp:117
Common base class for DOLFIN variables.
Definition: Variable.h:35
Output of XML representation of DOLFIN Table.
Definition: XMLTable.h:36
~Table()
Destructor.
Definition: Table.cpp:42
Table(std::string title="", bool right_justify=true)
Create empty table.
Definition: Table.cpp:35
std::string str_latex() const
Return informal string representation for LaTeX.
Definition: Table.cpp:278
std::string str(bool verbose) const
Return informal string representation (pretty-print)
Definition: Table.cpp:191
This class represents an entry in a Table.
Definition: Table.h:118