Public Member Functions | Static Public Member Functions | List of all members
tableReader< Type > Class Template Referenceabstract

Base class to read table data for the interpolationTable. More...

Inheritance diagram for tableReader< Type >:
Inheritance graph
[legend]

Public Member Functions

 TypeName ("tableReader")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, tableReader, dictionary,(const dictionary &dict),(dict))
 
 tableReader (const dictionary &dict)
 Construct from dictionary. More...
 
virtual autoPtr< tableReader< Type > > clone () const =0
 Construct and return a clone. More...
 
virtual ~tableReader ()
 Destructor. More...
 
virtual void operator() (const fileName &, List< Tuple2< scalar, Type >> &)=0
 Read the table. More...
 
virtual void operator() (const fileName &, List< Tuple2< scalar, List< Tuple2< scalar, Type >>>> &)=0
 Read the 2D table. More...
 
virtual void write (Ostream &os) const
 Write additional information. More...
 

Static Public Member Functions

static autoPtr< tableReaderNew (const dictionary &spec)
 Return a reference to the selected tableReader. More...
 

Detailed Description

template<class Type>
class Foam::tableReader< Type >

Base class to read table data for the interpolationTable.

Source files

Definition at line 57 of file tableReader.H.

Constructor & Destructor Documentation

◆ tableReader()

tableReader ( const dictionary dict)

Construct from dictionary.

Definition at line 63 of file tableReader.C.

◆ ~tableReader()

~tableReader ( )
virtual

Destructor.

Definition at line 70 of file tableReader.C.

Member Function Documentation

◆ TypeName()

TypeName ( "tableReader< Type >"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
tableReader< Type >  ,
dictionary  ,
(const dictionary &dict ,
(dict  
)

◆ clone()

virtual autoPtr<tableReader<Type> > clone ( ) const
pure virtual

Construct and return a clone.

Implemented in csvTableReader< Type >, and openFoamTableReader< Type >.

◆ New()

Foam::autoPtr< Foam::tableReader< Type > > New ( const dictionary spec)
static

Return a reference to the selected tableReader.

Definition at line 32 of file tableReader.C.

◆ operator()() [1/2]

virtual void operator() ( const fileName ,
List< Tuple2< scalar, Type >> &   
)
pure virtual

Read the table.

Implemented in csvTableReader< Type >, and openFoamTableReader< Type >.

◆ operator()() [2/2]

virtual void operator() ( const fileName ,
List< Tuple2< scalar, List< Tuple2< scalar, Type >>>> &   
)
pure virtual

Read the 2D table.

Implemented in csvTableReader< Type >, and openFoamTableReader< Type >.

◆ write()

void write ( Ostream os) const
virtual

Write additional information.

Reimplemented in csvTableReader< Type >.

Definition at line 77 of file tableReader.C.

Referenced by csvTableReader< Type >::write().

Here is the caller graph for this function:

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