FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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...

#include <lagrangianIntermediate/Table.H>


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 71 of file Table.H.

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.

Constructor & Destructor Documentation

Table ( const word &   entryName,
Istream &   is  
)

Construct from entry name and Istream.

Definition at line 31 of file Table.C.

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

Table ( const Table< Type > &   tbl  )

Copy constructor.

Definition at line 46 of file Table.C.

~Table (  ) [virtual]

Destructor.

Definition at line 56 of file Table.C.


Member Function Documentation

TypeName ( "table"    )

Runtime type information.

Type value ( const scalar   x  ) const [virtual]

Return Table value.

Implements DataEntry< Type >.

Definition at line 63 of file Table.C.

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

Integrate between two (scalar) values.

Implements DataEntry< Type >.

Definition at line 90 of file Table.C.

References Foam::sum().


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