#include <Teuchos_TableFormat.hpp>
Public Member Functions | |
| TableFormat () | |
| Construct with a header and default format settings. | |
| int | pageWidth () const |
| Get the maximum number of characters per line. Default is 80. | |
| int | precision () const |
| Get the precision for writing doubles. Default is 4. | |
| int | columnSpacing () const |
| Get the number of characters to be left as blank spaces in each column. Default is 4. | |
| void | setPageWidth (int pw) const |
| Set the number of characters on a line. This quantity can be updated within the const method writeWholeTables(). | |
| void | setPrecision (int p) |
| Set the precision for writing doubles. | |
| void | setColumnSpacing (int columnSpacing) |
| Set the number of characters to be left as blank spaces in each column. | |
| void | setRowsBetweenLines (int lineInterval) |
| Set the interval at which a horizontal line will be written between rows. | |
| string | thinline () const |
| Return a horizontal line in dashes "----" the width of the page. | |
| string | thickline () const |
| Return a thick horizontal line in equal signs "====" the width of the page. | |
| string | blanks (int size) const |
| Return a string full of blanks up to the requested size. | |
| int | computeRequiredColumnWidth (const string &name, const TableColumn &column) const |
| Computes the column width required to write all values to the required precision. | |
| void | setColumnWidths (const Array< int > &colWidths) |
| Set the column widths to be used for subsequent rows. | |
| void | writeRow (RefCountPtr< std::ostream > &out, const Array< RefCountPtr< TableEntry > > &entries) const |
| Write the row of entries. | |
| void | writeRow (RefCountPtr< std::ostream > &out, int rowIndex, const Array< TableColumn > &columns) const |
| Write the row of entries. | |
Note: it is left to the programmer to avoid invalid settings such as negative column spaces, zero page widths, and other such potentially bad things.
KL 30 Apr 2006 -- initial design.
Definition at line 52 of file Teuchos_TableFormat.hpp.
|
|
Construct with a header and default format settings.
Definition at line 56 of file Teuchos_TableFormat.hpp. |
|
|
Get the maximum number of characters per line. Default is 80.
Definition at line 63 of file Teuchos_TableFormat.hpp. |
|
|
Get the precision for writing doubles. Default is 4.
Definition at line 67 of file Teuchos_TableFormat.hpp. |
|
|
Get the number of characters to be left as blank spaces in each column. Default is 4.
Definition at line 71 of file Teuchos_TableFormat.hpp. |
|
|
Set the number of characters on a line. This quantity can be updated within the const method writeWholeTables().
Definition at line 76 of file Teuchos_TableFormat.hpp. |
|
|
Set the precision for writing doubles.
Definition at line 79 of file Teuchos_TableFormat.hpp. |
|
|
Set the number of characters to be left as blank spaces in each column.
Definition at line 82 of file Teuchos_TableFormat.hpp. |
|
|
Set the interval at which a horizontal line will be written between rows. lineInterval [in] the number of rows between each horizontal line Definition at line 89 of file Teuchos_TableFormat.hpp. |
|
|
Return a horizontal line in dashes "----" the width of the page.
Originally called Definition at line 34 of file Teuchos_TableFormat.cpp. |
|
|
Return a thick horizontal line in equal signs "====" the width of the page.
Definition at line 46 of file Teuchos_TableFormat.cpp. |
|
|
Return a string full of blanks up to the requested size.
Definition at line 57 of file Teuchos_TableFormat.cpp. |
|
||||||||||||
|
Computes the column width required to write all values to the required precision.
Definition at line 70 of file Teuchos_TableFormat.cpp. |
|
|
Set the column widths to be used for subsequent rows.
Definition at line 117 of file Teuchos_TableFormat.hpp. |
|
||||||||||||
|
Write the row of entries.
Definition at line 87 of file Teuchos_TableFormat.cpp. |
|
||||||||||||||||
|
Write the row of entries.
Definition at line 104 of file Teuchos_TableFormat.cpp. |
1.3.9.1