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

Constant< Type > Class Template Reference

Templated basic entry that holds a constant value. More...

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

List of all members.


Public Member Functions

 TypeName ("constant")
 Constant (const word &entryName, Istream &is)
 Construct from entry name and Istream.
 Constant (const Constant< Type > &cnst)
 Copy constructor.
virtual ~Constant ()
 Destructor.
Type value (const scalar) const
 Return constant value.
Type integrate (const scalar x1, const scalar x2) const
 Integrate between two values.
template<>
 Constant (const word &entryName, Istream &is)
template<>
 Constant (const word &entryName, Istream &is)
template<>
 Constant (const word &entryName, Istream &is)
template<>
 Constant (const word &entryName, Istream &is)

Friends

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

Detailed Description

template<class Type>
class Foam::Constant< Type >

Templated basic entry that holds a constant value.

Usage - for entry <entryName> having the value

:

    <entryName>    constant  <value>

Source files

Definition at line 60 of file Constant.H.


Constructor & Destructor Documentation

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

Construct from entry name and Istream.

Definition at line 23 of file Constant.C.

Constant ( const Constant< Type > &  cnst  )  [inline]

Copy constructor.

Definition at line 31 of file Constant.C.

~Constant (  )  [inline, virtual]

Destructor.

Definition at line 57 of file Constant.C.

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

Definition at line 39 of file Constant.C.

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

Definition at line 47 of file Constant.C.

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

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


Member Function Documentation

TypeName ( "constant"   ) 

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

Return constant value.

Implements DataEntry< Type >.

Definition at line 64 of file Constant.C.

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

Integrate between two values.

Implements DataEntry< Type >.

Definition at line 71 of file Constant.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/Constant/Constant.H
  • src/lagrangian/intermediate/submodels/IO/DataEntry/Constant/Constant.C
Copyright © 2000-2009 OpenCFD Ltd