OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

Table< Type > Class Template Reference

Templated table container data entry. Items are stored in a list of Tuple2's. First column is always stored as scalar entries. Data is read in the form, e.g. for an entry <entryName> that is (scalar, vector):. More...

Inheritance diagram for Table< Type >:
Collaboration diagram for Table< Type >:

List of all members.


Public Member Functions

 TypeName ("table")
 Runtime type information.
 Table (const word &entryName, Istream &is)
 Construct from entry name and Istream.
 Table (const Table< Type > &tbl)
 Copy constructor.
virtual ~Table ()
 Destructor.
Type value (const scalar x) const
 Return Table value.
Type integrate (const scalar x1, const scalar x2) const
 Integrate between two (scalar) values.

Friends

Ostream & operator (Ostream &, const Constant< Type > &)
 Ostream Operator.

Detailed Description

template<class Type>
class Foam::Table< Type >

Templated table container data entry. Items are stored in a list of Tuple2's. First column is always stored as scalar entries. Data is read in the form, e.g. for an entry <entryName> that is (scalar, vector):.

    <entryName>   table
    (
        0.0 (1 2 3)
        1.0 (4 5 6)
    );

Source files

Definition at line 66 of file Table.H.


Constructor & Destructor Documentation

Table ( const word &  entryName,
Istream &  is 
) [inline]

Construct from entry name and Istream.

Definition at line 23 of file Table.C.

References List< T >::size().

Here is the call graph for this function:

Table ( const Table< Type > &  tbl  )  [inline]

Copy constructor.

Definition at line 38 of file Table.C.

References Foam::exit(), Foam::FatalError, FatalErrorIn, DataEntry< Type >::name_, and Foam::nl.

Here is the call graph for this function:

~Table (  )  [inline, virtual]

Destructor.

Definition at line 48 of file Table.C.


Member Function Documentation

TypeName ( "table"   ) 

Runtime type information.

Type value ( const scalar  x  )  const [inline, virtual]

Return Table value.

Implements DataEntry< Type >.

Definition at line 55 of file Table.C.

Type integrate ( const scalar  x1,
const scalar  x2 
) const [inline, virtual]

Integrate between two (scalar) values.

Implements DataEntry< Type >.

Definition at line 82 of file Table.C.


Friends And Related Function Documentation

Ostream& operator ( Ostream &  ,
const Constant< Type > &   
) [friend]

Ostream Operator.


The documentation for this class was generated from the following files:
  • src/lagrangian/intermediate/submodels/IO/DataEntry/Table/Table.H
  • src/lagrangian/intermediate/submodels/IO/DataEntry/Table/Table.C
Copyright © 2000-2009 OpenCFD Ltd