Templated basic entry that holds a constant value. More...
#include <lagrangianIntermediate/Constant.H>
Templated basic entry that holds a constant value.
Usage - for entry <entryName> having the value
:
<entryName>constant <value>
Definition at line 65 of file Constant.H.
Inheritance diagram for Constant< Type >:
Collaboration diagram for Constant< Type >: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) | |
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 word & | name () const |
| Return the name of the entry. | |
Friends | |
| Ostream & | operator (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 word & | entryName |
| const word Istream & | is |
| const word Istream | entryName |
| const word Istream | is |
Protected Attributes inherited from DataEntry< Type > | |
| const word | name_ |
| Name of entry. | |
Construct from entry name and Istream.
Definition at line 31 of file Constant.C.
Copy constructor.
Definition at line 39 of file Constant.C.
|
virtual |
Destructor.
Definition at line 65 of file Constant.C.
Definition at line 47 of file Constant.C.
Definition at line 55 of file Constant.C.
| TypeName | ( | "constant" | ) |
|
virtual |
|
virtual |
Integrate between two values.
Implements DataEntry< Type >.
Definition at line 79 of file Constant.C.