PrintTable< KeyType, DataType > Class Template Reference

Print a table in parallel, e.g.;. More...

Public Member Functions

 PrintTable ()
 Null constructor. More...
 
 PrintTable (const string &title)
 Construct with a title. More...
 
 PrintTable (const PrintTable< KeyType, DataType > &table)
 Copy constructor. More...
 
 ~PrintTable ()=default
 Destructor. More...
 
void add (const KeyType &K, const DataType &D)
 Add an entry (D) to the given key(K) More...
 
void print (Ostream &os, const bool printSum=false, const bool printAverage=false) const
 Print the table. More...
 

Detailed Description

template<class KeyType, class DataType>
class Foam::PrintTable< KeyType, DataType >

Print a table in parallel, e.g.;.

                        Vertex Type Information
               Proc #        0       1       2       3
                Total   145680  145278  145751  145359
           Unassigned        0       0       0       0
 nExternalFeatureEdge      883     829     828     960
nExternalFeaturePoint        8      10      10      12
     nExternalSurface     9533    9488    9502    9482
                 nFar        0       0       0       0
            nInternal   125494  125198  125642  125174
 nInternalFeatureEdge      238     241     241     240
nInternalFeaturePoint        2       2       2       2
nInternalNearBoundary        0       0       0       0
     nInternalSurface     9522    9510    9526    9489
            nReferred     7545    7497    7500    7587
Source files

Definition at line 70 of file PrintTable.H.

Constructor & Destructor Documentation

◆ PrintTable() [1/3]

Null constructor.

◆ PrintTable() [2/3]

PrintTable ( const string title)
explicit

Construct with a title.

◆ PrintTable() [3/3]

PrintTable ( const PrintTable< KeyType, DataType > &  table)

Copy constructor.

◆ ~PrintTable()

~PrintTable ( )
default

Destructor.

Member Function Documentation

◆ add()

void add ( const KeyType &  K,
const DataType &  D 
)
inline

Add an entry (D) to the given key(K)

Definition at line 31 of file PrintTableI.H.

References D.

◆ print()

void print ( Ostream os,
const bool  printSum = false,
const bool  printAverage = false 
) const

Print the table.


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