Organizes the results in the hashes from InOutParameters in a nice table. More...

#include <resultsTable.hh>

Inheritance diagram for concepts::ResultsTable:
concepts::OutputOperator

Classes

struct  tableDelimTraits
 Table delimiters. More...
 

Public Types

enum  mapTypes { DOUBLE, STRING, INT, BOOL }
 Types of maps in InOutParameters. More...
 
enum  tableTypes { SCREEN, GNUPLOT, HTML }
 

Public Member Functions

void addMap (enum mapTypes type, const char *name, const InOutParameters &holder)
 
template<enum tableTypes t>
void print (std::ostream &os) const
 
template<enum tableTypes t>
void print (std::ostream &os, enum mapTypes typeL, const char *nameL) const
 
 ResultsTable ()
 Constructor. More...
 
 ~ResultsTable ()
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 

Private Member Functions

template<enum tableTypes t>
void headline_ (std::ostream &os) const
 
template<enum tableTypes t>
void tableline_ (std::ostream &os, const int idx) const
 

Private Attributes

std::map< const char *, const std::map< int, bool > *, ltstrboolMaps_
 
std::map< const char *, const std::map< int, double > *, ltstrdoubleMaps_
 
std::map< const char *, const std::map< int, int > *, ltstrintMaps_
 
bool leader_
 
char * nameL_
 
std::map< const char *, const std::map< int, std::string > *, ltstrstringMaps_
 
enum mapTypes typeL_
 

Detailed Description

Organizes the results in the hashes from InOutParameters in a nice table.

Author
Philipp Frauenfelder, 2002
Examples
hpFEM2d.cc, hpFEM3d-EV.cc, inputoutput.cc, linearDG1d.cc, and linearFEM1d.cc.

Definition at line 23 of file resultsTable.hh.

Member Enumeration Documentation

◆ mapTypes

Types of maps in InOutParameters.

Enumerator
DOUBLE 
STRING 
INT 
BOOL 

Definition at line 33 of file resultsTable.hh.

◆ tableTypes

Enumerator
SCREEN 
GNUPLOT 
HTML 

Definition at line 25 of file resultsTable.hh.

Constructor & Destructor Documentation

◆ ResultsTable()

concepts::ResultsTable::ResultsTable ( )

Constructor.

◆ ~ResultsTable()

concepts::ResultsTable::~ResultsTable ( )

Member Function Documentation

◆ addMap()

void concepts::ResultsTable::addMap ( enum mapTypes  type,
const char *  name,
const InOutParameters holder 
)

◆ headline_()

template<enum tableTypes t>
void concepts::ResultsTable::headline_ ( std::ostream &  os) const
private

◆ info()

virtual std::ostream& concepts::ResultsTable::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

◆ print() [1/2]

template<enum tableTypes t>
void concepts::ResultsTable::print ( std::ostream &  os) const

◆ print() [2/2]

template<enum tableTypes t>
void concepts::ResultsTable::print ( std::ostream &  os,
enum mapTypes  typeL,
const char *  nameL 
) const

◆ tableline_()

template<enum tableTypes t>
void concepts::ResultsTable::tableline_ ( std::ostream &  os,
const int  idx 
) const
private

Member Data Documentation

◆ boolMaps_

std::map<const char*, const std::map<int, bool>*, ltstr> concepts::ResultsTable::boolMaps_
private

Definition at line 55 of file resultsTable.hh.

◆ doubleMaps_

std::map<const char*, const std::map<int, double>*, ltstr> concepts::ResultsTable::doubleMaps_
private

Definition at line 51 of file resultsTable.hh.

◆ intMaps_

std::map<const char*, const std::map<int, int>*, ltstr> concepts::ResultsTable::intMaps_
private

Definition at line 54 of file resultsTable.hh.

◆ leader_

bool concepts::ResultsTable::leader_
private

Definition at line 56 of file resultsTable.hh.

◆ nameL_

char* concepts::ResultsTable::nameL_
private

Definition at line 58 of file resultsTable.hh.

◆ stringMaps_

std::map<const char*, const std::map<int, std::string>*, ltstr> concepts::ResultsTable::stringMaps_
private

Definition at line 53 of file resultsTable.hh.

◆ typeL_

enum mapTypes concepts::ResultsTable::typeL_
private

Definition at line 56 of file resultsTable.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich