TimeFunction1< Type > Class Template Reference

Light wrapper around Function1 to provide a mechanism to update time-based entries. More...

Collaboration diagram for TimeFunction1< Type >:
[legend]

Public Member Functions

 TimeFunction1 (const Time &runTime, const word &name, const dictionary &dict)
 Construct from entry name and dictionary. More...
 
 TimeFunction1 (const Time &runTime, const word &entryName)
 Construct from entry name. More...
 
 TimeFunction1 (const TimeFunction1< Type > &rhs)
 Copy construct. More...
 
virtual ~TimeFunction1 ()=default
 Destructor. More...
 
void reset (const dictionary &dict)
 Reset entry by re-reading from dictionary. More...
 
const wordname () const
 Return the name of the entry. More...
 
virtual Type value (const scalar x) const
 Return value as a function of (scalar) independent variable. More...
 
virtual Type integrate (const scalar x1, const scalar x2) const
 Integrate between two (scalar) values. More...
 
virtual void writeData (Ostream &os) const
 Write in dictionary format. More...
 

Protected Attributes

const Timetime_
 Reference to the time database. More...
 
const word name_
 Name of the data entry. More...
 
autoPtr< Function1< Type > > entry_
 The underlying Function1. More...
 

Friends

Ostreamoperator (Ostream &os, const TimeFunction1< Type > &de)
 Ostream Operator. More...
 

Detailed Description

template<class Type>
class Foam::TimeFunction1< Type >

Light wrapper around Function1 to provide a mechanism to update time-based entries.

Source files

Definition at line 60 of file TimeFunction1.H.

Constructor & Destructor Documentation

◆ TimeFunction1() [1/3]

TimeFunction1 ( const Time runTime,
const word name,
const dictionary dict 
)

Construct from entry name and dictionary.

Definition at line 34 of file TimeFunction1.C.

References Foam::New().

Here is the call graph for this function:

◆ TimeFunction1() [2/3]

TimeFunction1 ( const Time runTime,
const word entryName 
)

Construct from entry name.

Definition at line 51 of file TimeFunction1.C.

◆ TimeFunction1() [3/3]

TimeFunction1 ( const TimeFunction1< Type > &  rhs)

Copy construct.

Definition at line 64 of file TimeFunction1.C.

References TimeFunction1< Type >::entry_.

◆ ~TimeFunction1()

virtual ~TimeFunction1 ( )
virtualdefault

Destructor.

Member Function Documentation

◆ reset()

void reset ( const dictionary dict)

Reset entry by re-reading from dictionary.

Definition at line 83 of file TimeFunction1.C.

References dict, and Time::New().

Here is the call graph for this function:

◆ name()

const Foam::word & name

Return the name of the entry.

Definition at line 91 of file TimeFunction1.C.

◆ value()

Type value ( const scalar  x) const
virtual

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

Definition at line 98 of file TimeFunction1.C.

References TimeFunction1< Type >::value(), and x.

Referenced by TimeFunction1< Type >::value().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ integrate()

Type integrate ( const scalar  x1,
const scalar  x2 
) const
virtual

Integrate between two (scalar) values.

Definition at line 105 of file TimeFunction1.C.

◆ writeData()

void writeData ( Ostream os) const
virtual

Write in dictionary format.

Definition at line 133 of file TimeFunction1.C.

References os(), and TimeFunction1< Type >::writeData().

Referenced by TimeFunction1< Type >::writeData().

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator

Ostream & operator ( Ostream os,
const TimeFunction1< Type > &  de 
)
friend

Ostream Operator.

Member Data Documentation

◆ time_

const Time& time_
protected

Reference to the time database.

Definition at line 67 of file TimeFunction1.H.

◆ name_

const word name_
protected

Name of the data entry.

Definition at line 70 of file TimeFunction1.H.

◆ entry_

autoPtr<Function1<Type> > entry_
protected

The underlying Function1.

Definition at line 73 of file TimeFunction1.H.

Referenced by TimeFunction1< Type >::TimeFunction1().


The documentation for this class was generated from the following files: