FreeFOAM The Cross-Platform CFD Toolkit
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.
- Public Member Functions inherited from DataEntry< Type >
 TypeName ("DataEntry") declareRunTimeSelectionTable(autoPtr
 Runtime type information.
 DataEntry (const word &entryName)
 Construct from entry name.
 DataEntry (const DataEntry< Type > &de)
 Copy constructor.
virtual ~DataEntry ()
 Destructor.
const wordname () const
 Return the name of the entry.

Friends

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

Additional Inherited Members

- Static Public Member Functions inherited from DataEntry< Type >
static autoPtr< DataEntry< Type > > New (const word &entryName, const dictionary &dict)
 Selector.
- Public Attributes inherited from DataEntry< Type >
 DataEntry
 dictionary
const wordentryName
const word Istreamis
const word Istream entryName
const word Istream is
- Protected Attributes inherited from DataEntry< Type >
const word name_
 Name of entry.

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: