Light wrapper around Function1 to provide a mechanism to update time-based entries. More...
#include <TimeFunction1.H>

Public Member Functions | |
| TimeFunction1 (const Time &runTime, const word &name, const dictionary &dict) | |
| Construct from entry name and dictionary. | |
| TimeFunction1 (const Time &runTime, const word &entryName) | |
| Construct from entry name. | |
| TimeFunction1 (const TimeFunction1< Type > &rhs) | |
| Copy construct. | |
| virtual | ~TimeFunction1 ()=default |
| Destructor. | |
| void | reset (const dictionary &dict) |
| Reset entry by re-reading from dictionary. | |
| const word & | name () const |
| Return the name of the entry. | |
| virtual Type | value (const scalar x) const |
| Return value as a function of (scalar) independent variable. | |
| virtual Type | integrate (const scalar x1, const scalar x2) const |
| Integrate between two (scalar) values. | |
| virtual void | writeData (Ostream &os) const |
| Write in dictionary format. | |
Protected Attributes | |
| const Time & | time_ |
| Reference to the time database. | |
| const word | name_ |
| Name of the data entry. | |
| autoPtr< Function1< Type > > | entry_ |
| The underlying Function1. | |
Friends | |
| Ostream & | operator<< (Ostream &os, const TimeFunction1< Type > &de) |
| Ostream Operator. | |
Light wrapper around Function1 to provide a mechanism to update time-based entries.
Definition at line 56 of file TimeFunction1.H.
| TimeFunction1 | ( | const Time & | runTime, |
| const word & | name, | ||
| const dictionary & | dict ) |
Construct from entry name and dictionary.
Definition at line 27 of file TimeFunction1.C.
References dict, entry_, name_, Foam::New(), runTime, and time_.
Referenced by operator<<, and TimeFunction1().


| TimeFunction1 | ( | const TimeFunction1< Type > & | rhs | ) |
Copy construct.
Definition at line 57 of file TimeFunction1.C.
References entry_, name_, Foam::rhs(), time_, and TimeFunction1().

|
virtualdefault |
| void reset | ( | const dictionary & | dict | ) |
| const Foam::word & name | ( | ) | const |
|
virtual |
Return value as a function of (scalar) independent variable.
Definition at line 91 of file TimeFunction1.C.
|
virtual |
Integrate between two (scalar) values.
Definition at line 98 of file TimeFunction1.C.
References entry_.
|
virtual |
Write in dictionary format.
Definition at line 126 of file TimeFunction1.C.

|
friend |
Ostream Operator.
References os(), and TimeFunction1().
|
protected |
Reference to the time database.
Definition at line 65 of file TimeFunction1.H.
Referenced by reset(), TimeFunction1(), TimeFunction1(), and TimeFunction1().
|
protected |
Name of the data entry.
Definition at line 70 of file TimeFunction1.H.
Referenced by reset(), TimeFunction1(), TimeFunction1(), and TimeFunction1().
The underlying Function1.
Definition at line 75 of file TimeFunction1.H.
Referenced by integrate(), name(), reset(), TimeFunction1(), TimeFunction1(), TimeFunction1(), value(), and writeData().