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

DataEntry< Type > Class Template Reference

Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a certain type, e.g. constant or table, and provide functions to return the (interpolated) value, and integral between limits. More...

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

List of all members.


Public Member Functions

 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 word & name () const
 Return the name of the entry.
virtual Type value (const scalar x) const =0
 Return value as a function of (scalar) independent variable.
virtual Type integrate (const scalar x1, const scalar x2) const =0
 Integrate between two (scalar) values.

Static Public Member Functions

static autoPtr< DataEntry< Type > > New (const word &entryName, const dictionary &dict)
 Selector.

Public Attributes

 DataEntry
 dictionary
const word & entryName
const word Istream & is
const word Istream entryName
const word Istream is

Protected Attributes

const word name_
 Name of entry.

Friends

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

Detailed Description

template<class Type>
class Foam::DataEntry< Type >

Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a certain type, e.g. constant or table, and provide functions to return the (interpolated) value, and integral between limits.

Source files

Definition at line 59 of file DataEntry.H.


Constructor & Destructor Documentation

DataEntry ( const word &  entryName  ) 

Construct from entry name.

DataEntry ( const DataEntry< Type > &  de  ) 

Copy constructor.

~DataEntry (  )  [inline, virtual]

Destructor.

Definition at line 39 of file DataEntry.C.


Member Function Documentation

TypeName ( "DataEntry< Type >"   ) 

Runtime type information.

Declare runtime constructor selection table

Foam::autoPtr< Foam::DataEntry< Type > > New ( const word &  entryName,
const dictionary &  dict 
) [inline, static]

Selector.

Definition at line 24 of file NewDataEntry.C.

References Foam::exit(), Foam::FatalError, FatalErrorIn, dictionary::lookup(), and Foam::nl.

Here is the call graph for this function:

const Foam::word & name (  )  const [inline]

Return the name of the entry.

Definition at line 46 of file DataEntry.C.

virtual Type value ( const scalar  x  )  const [pure virtual]

Return value as a function of (scalar) independent variable.

Implemented in Constant< Type >, polynomial, and Table< Type >.

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

Integrate between two (scalar) values.

Implemented in Constant< Type >, polynomial, and Table< Type >.


Friends And Related Function Documentation

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

Ostream Operator.


Member Data Documentation

const word name_ [protected]

Name of entry.

Definition at line 72 of file DataEntry.H.

DataEntry [inline]

Definition at line 84 of file DataEntry.H.

Definition at line 84 of file DataEntry.H.

const word& entryName

Definition at line 84 of file DataEntry.H.

const word Istream& is

Definition at line 84 of file DataEntry.H.

Definition at line 84 of file DataEntry.H.

const word Istream is

Definition at line 84 of file DataEntry.H.


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