Utility class that makes it easy to create formatted tables of output.
More...
#include <Teuchos_TabularOutputter.hpp>
|
| enum | EFieldType { DOUBLE,
INT,
STRING
} |
| |
| enum | { numFieldTypes = 3
} |
| |
| enum | EFieldJustification { LEFT,
RIGHT
} |
| |
| enum | { numFieldJustifications = 2
} |
| |
| enum | EFloatingOutputType { SCIENTIFIC,
GENERAL
} |
| |
| enum | { numFloatingOutputTypes = 2
} |
| |
| static const std::string | fieldSpacer_ |
| |
| Array< FieldSpec > | fieldSpecs_ |
| |
| RCP< FancyOStream > | out_ |
| |
| Tuple< int, numFieldTypes > | fieldTypePrecision_ |
| |
| int | currFieldIdx_ |
| |
| Time | timer_ |
| |
| int | numLoops_ |
| |
| | 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...
|
| |
| void | startTimer (const int numLoops) |
| |
| double | stopTimer () |
| |
| void | initialize () |
| |
| double | adjustTime (const double &time_in) |
| |
| | TabularOutputter () |
| |
Utility class that makes it easy to create formatted tables of output.
Definition at line 61 of file Teuchos_TabularOutputter.hpp.
◆ EFieldType
◆ anonymous enum
◆ EFieldJustification
◆ anonymous enum
◆ EFloatingOutputType
◆ anonymous enum
◆ TabularOutputter() [1/3]
| Teuchos::TabularOutputter::TabularOutputter |
( |
std::ostream & |
out | ) |
|
◆ TabularOutputter() [2/3]
| Teuchos::TabularOutputter::TabularOutputter |
( |
const RCP< std::ostream > & |
out | ) |
|
◆ TabularOutputter() [3/3]
| Teuchos::TabularOutputter::TabularOutputter |
( |
| ) |
|
|
private |
◆ setOStream()
| void Teuchos::TabularOutputter::setOStream |
( |
const RCP< std::ostream > & |
out | ) |
|
◆ pushFieldSpec()
◆ setFieldTypePrecision()
| void Teuchos::TabularOutputter::setFieldTypePrecision |
( |
const EFieldType |
fieldType, |
|
|
const int |
prec |
|
) |
| |
◆ outputHeader()
| void Teuchos::TabularOutputter::outputHeader |
( |
| ) |
|
◆ outputField()
template<typename T >
| void Teuchos::TabularOutputter::outputField |
( |
const T & |
t | ) |
|
◆ nextRow()
| void Teuchos::TabularOutputter::nextRow |
( |
const bool |
allowRemainingFields = false | ) |
|
◆ initialize()
| void Teuchos::TabularOutputter::initialize |
( |
| ) |
|
|
private |
◆ adjustTime()
| double Teuchos::TabularOutputter::adjustTime |
( |
const double & |
time_in | ) |
|
|
inlineprivate |
◆ startTimer()
| void Teuchos::TabularOutputter::startTimer |
( |
const int |
numLoops | ) |
|
|
inline |
◆ stopTimer()
| double Teuchos::TabularOutputter::stopTimer |
( |
| ) |
|
|
inline |
◆ fieldSpacer_
| const std::string Teuchos::TabularOutputter::fieldSpacer_ |
|
staticprivate |
◆ fieldSpecs_
◆ out_
◆ fieldTypePrecision_
◆ currFieldIdx_
| int Teuchos::TabularOutputter::currFieldIdx_ |
|
private |
◆ timer_
| Time Teuchos::TabularOutputter::timer_ |
|
private |
◆ numLoops_
| int Teuchos::TabularOutputter::numLoops_ |
|
private |
The documentation for this class was generated from the following files: