All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 ()
 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...
 
void operator= (const PrintTable< KeyType, DataType > &)=delete
 Disallow default bitwise assignment. 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 68 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 ( )

Destructor.

Member Function Documentation

◆ add()

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

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

Definition at line 30 of file PrintTableI.H.

◆ print()

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

Print the table.

◆ operator=()

void operator= ( const PrintTable< KeyType, DataType > &  )
delete

Disallow default bitwise assignment.


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