dune-fem 2.8.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Dune::Fem::LatexTableWriter< DataTuple > Class Template Reference

writes latex tables based on user-defined row structure More...

#include <dune/fem/io/file/latextablewriter.hh>

Public Types

typedef AbstractColumnWriter< DataTuple > ColumnWriterType
 Abstract column type.
 
typedef std::vector< const ColumnWriterType * > ColumnWriterVectorType
 Abstract column vector type.
 

Public Member Functions

 LatexTableWriter (const std::string &filename, const ColumnWriterVectorType &columnWriter)
 
 ~LatexTableWriter ()
 writes "\end{tabular}" to the latex file and removes column vector
 
void writeRow (const DataTuple &data)
 Write row to the table.
 
void writeSeparator ()
 Adds extra space between two columns in the latex table.
 

Detailed Description

template<class DataTuple>
class Dune::Fem::LatexTableWriter< DataTuple >

writes latex tables based on user-defined row structure

The class LatexTableWriter writes a latex table where each row corresponds to user-provided row structure of the DataTuple type.

Member Typedef Documentation

◆ ColumnWriterType

template<class DataTuple >
typedef AbstractColumnWriter< DataTuple > Dune::Fem::LatexTableWriter< DataTuple >::ColumnWriterType

Abstract column type.

◆ ColumnWriterVectorType

template<class DataTuple >
typedef std::vector< const ColumnWriterType * > Dune::Fem::LatexTableWriter< DataTuple >::ColumnWriterVectorType

Abstract column vector type.

Constructor & Destructor Documentation

◆ LatexTableWriter()

template<class DataTuple >
Dune::Fem::LatexTableWriter< DataTuple >::LatexTableWriter ( const std::string &  filename,
const ColumnWriterVectorType columnWriter 
)
inline

Constructor

Parameters
[in]filenameThe name of the latex file
[in]columnWriterAbstract column writer

◆ ~LatexTableWriter()

template<class DataTuple >
Dune::Fem::LatexTableWriter< DataTuple >::~LatexTableWriter
inline

writes "\end{tabular}" to the latex file and removes column vector

Destructor

Member Function Documentation

◆ writeRow()

template<class DataTuple >
void Dune::Fem::LatexTableWriter< DataTuple >::writeRow ( const DataTuple &  data)
inline

Write row to the table.

◆ writeSeparator()

template<class DataTuple >
void Dune::Fem::LatexTableWriter< DataTuple >::writeSeparator
inline

Adds extra space between two columns in the latex table.


The documentation for this class was generated from the following file: