Teuchos - Trilinos Tools Package
Version of the Day
|
Utility class that makes it easy to create formatted tables of output. More...
#include <Teuchos_TabularOutputter.hpp>
Classes | |
class | InvalidFieldOutputError |
class | InvalidFieldSpecError |
class | MissingFieldsError |
class | MissingHeaderError |
Public Types | |
Public types | |
enum | EFieldType |
enum | |
enum | EFieldJustification |
enum | |
enum | EFloatingOutputType |
enum | |
Public Member Functions | |
TabularOutputter (std::ostream &out) | |
TabularOutputter (const RCP< std::ostream > &out) | |
void | setOStream (const RCP< std::ostream > &out) |
Set the ostream that all output will be sent to. More... | |
void | pushFieldSpec (const std::string &fieldName, const EFieldType fieldType=DOUBLE, const EFieldJustification fieldJustification=RIGHT, const EFloatingOutputType floatingOutputType=SCIENTIFIC, const int width=-1) |
Add a new field to be output. More... | |
void | setFieldTypePrecision (const EFieldType fieldType, const int prec) |
Set the precision of output for a field. More... | |
void | outputHeader () |
Output the headers. More... | |
template<typename T > | |
void | outputField (const T &t) |
Output to the next field. More... | |
void | nextRow (const bool allowRemainingFields=false) |
Finalize the row of output. More... | |
Utility class that makes it easy to create formatted tables of output.
Definition at line 29 of file Teuchos_TabularOutputter.hpp.
Definition at line 36 of file Teuchos_TabularOutputter.hpp.
Definition at line 40 of file Teuchos_TabularOutputter.hpp.
Definition at line 44 of file Teuchos_TabularOutputter.hpp.
Teuchos::TabularOutputter::TabularOutputter | ( | std::ostream & | out | ) |
Definition at line 51 of file Teuchos_TabularOutputter.cpp.
Teuchos::TabularOutputter::TabularOutputter | ( | const RCP< std::ostream > & | out | ) |
Definition at line 60 of file Teuchos_TabularOutputter.cpp.
void Teuchos::TabularOutputter::setOStream | ( | const RCP< std::ostream > & | out | ) |
Set the ostream that all output will be sent to.
Definition at line 69 of file Teuchos_TabularOutputter.cpp.
void Teuchos::TabularOutputter::pushFieldSpec | ( | const std::string & | fieldName, |
const EFieldType | fieldType = DOUBLE , |
||
const EFieldJustification | fieldJustification = RIGHT , |
||
const EFloatingOutputType | floatingOutputType = SCIENTIFIC , |
||
const int | width = -1 |
||
) |
Add a new field to be output.
Definition at line 78 of file Teuchos_TabularOutputter.cpp.
void Teuchos::TabularOutputter::setFieldTypePrecision | ( | const EFieldType | fieldType, |
const int | prec | ||
) |
Set the precision of output for a field.
This will also determine the width of the field.
Definition at line 104 of file Teuchos_TabularOutputter.cpp.
void Teuchos::TabularOutputter::outputHeader | ( | ) |
Output the headers.
Definition at line 111 of file Teuchos_TabularOutputter.cpp.
void Teuchos::TabularOutputter::outputField | ( | const T & | t | ) |
Output to the next field.
Definition at line 213 of file Teuchos_TabularOutputter.hpp.
void Teuchos::TabularOutputter::nextRow | ( | const bool | allowRemainingFields = false | ) |
Finalize the row of output.
Definition at line 152 of file Teuchos_TabularOutputter.cpp.