DUNE-FEM (unstable)
Dune::Fem::NumberColumnWriter< DataTuple, DataSource > Class Template Reference
gets the N th element of a provided tuple assuming its a number More...
#include <dune/fem/io/file/latextablewriter.hh>
Public Types | |
enum | Alignment |
The alignment for the data in this column. | |
Public Member Functions | |
NumberColumnWriter (const std::string &header, const int decimals=6, const DataSource &source=DataSource()) | |
NumberColumnWriter (const std::string &header, const DataSource &source) | |
Constructor of NumberColumnWriter where decimal default to 6. More... | |
BaseType::Alignment | alignment () const |
set the aligment of the entries for this column in the latex table | |
std::string | entry (const DataTuple &data) const |
returns N the element from data tuple More... | |
std::string | header () const |
return Column titles in latex row format | |
Protected Member Functions | |
template<class Number > | |
std::string | toString (const Number &number) const |
converts number to std::string | |
Detailed Description
template<class DataTuple, class DataSource>
class Dune::Fem::NumberColumnWriter< DataTuple, DataSource >
class Dune::Fem::NumberColumnWriter< DataTuple, DataSource >
gets the N th element of a provided tuple assuming its a number
This class extracts the N th element of the tuple assuming the N th element is a number
- Template Parameters
-
DataTuple The type of the data tuple N Index of the entry in the data tuple tp be extracted
Constructor & Destructor Documentation
◆ NumberColumnWriter() [1/2]
template<class DataTuple , class DataSource >
|
inlineexplicit |
Constructor
- Parameters
-
[in] header Column titles in latex row format [in] decimals The precision of double for output to latex table [in] source The type of the data to be written in column(s)
◆ NumberColumnWriter() [2/2]
template<class DataTuple , class DataSource >
|
inline |
Constructor of NumberColumnWriter where decimal default to 6.
Constructor
- Parameters
-
[in] header Column titles in latex row format [in] source The type of the data to be written in column(s)
Member Function Documentation
◆ entry()
template<class DataTuple , class DataSource >
|
inlinevirtual |
returns N the element from data tuple
- Returns
- String representing N th element of data
- Note
- N th element of data is assumed to be number
Implements Dune::Fem::AbstractColumnWriter< DataTuple >.
References Dune::Fem::NumberColumnWriter< DataTuple, DataSource >::toString().
The documentation for this class was generated from the following file:
- dune/fem/io/file/latextablewriter.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 21, 23:30, 2024)