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 >

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
DataTupleThe type of the data tuple
NIndex of the entry in the data tuple tp be extracted

Constructor & Destructor Documentation

◆ NumberColumnWriter() [1/2]

template<class DataTuple , class DataSource >
Dune::Fem::NumberColumnWriter< DataTuple, DataSource >::NumberColumnWriter ( const std::string &  header,
const int  decimals = 6,
const DataSource &  source = DataSource() 
)
inlineexplicit

Constructor

Parameters
[in]headerColumn titles in latex row format
[in]decimalsThe precision of double for output to latex table
[in]sourceThe type of the data to be written in column(s)

◆ NumberColumnWriter() [2/2]

template<class DataTuple , class DataSource >
Dune::Fem::NumberColumnWriter< DataTuple, DataSource >::NumberColumnWriter ( const std::string &  header,
const DataSource &  source 
)
inline

Constructor of NumberColumnWriter where decimal default to 6.

Constructor

Parameters
[in]headerColumn titles in latex row format
[in]sourceThe type of the data to be written in column(s)

Member Function Documentation

◆ entry()

template<class DataTuple , class DataSource >
std::string Dune::Fem::NumberColumnWriter< DataTuple, DataSource >::entry ( const DataTuple &  data) const
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:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 13, 23:29, 2024)