Public Member Functions | List of all members
demandDrivenEntry< Type > Class Template Reference

Class for demand-driven dictionary entries. More...

Inheritance diagram for demandDrivenEntry< Type >:
Inheritance graph
[legend]

Public Member Functions

 demandDrivenEntry (const dictionary &dict, const Type &value)
 Constructors. More...
 
 demandDrivenEntry (const dictionary &dict, const word &keyword)
 Construct from dictionary and keyword. More...
 
 demandDrivenEntry (const dictionary &dict, const word &keyword, const Type &defaultValue, const bool readIfPresent=true)
 Construct from dictionary, keyword and default value. More...
 
 demandDrivenEntry (const demandDrivenEntry &dde)
 Copy constructor. More...
 
void initialise () const
 Initialise. More...
 
const Type & value () const
 Return the value. More...
 
void setValue (const Type &value)
 Set the value. More...
 
void reset ()
 Reset the demand-driven entry. More...
 

Detailed Description

template<class Type>
class Foam::demandDrivenEntry< Type >

Class for demand-driven dictionary entries.

Holds a reference to a dictionary, which is then queried if the value is requested and has not already been cached

Source files

Definition at line 53 of file demandDrivenEntry.H.

Constructor & Destructor Documentation

◆ demandDrivenEntry() [1/4]

demandDrivenEntry ( const dictionary dict,
const Type &  value 
)

Constructors.

Construct from dictionary and value - cannot be re-read

Definition at line 32 of file demandDrivenEntry.C.

Referenced by demandDrivenEntry< bool >::demandDrivenEntry().

Here is the caller graph for this function:

◆ demandDrivenEntry() [2/4]

demandDrivenEntry ( const dictionary dict,
const word keyword 
)

Construct from dictionary and keyword.

Definition at line 46 of file demandDrivenEntry.C.

◆ demandDrivenEntry() [3/4]

demandDrivenEntry ( const dictionary dict,
const word keyword,
const Type &  defaultValue,
const bool  readIfPresent = true 
)

Construct from dictionary, keyword and default value.

Definition at line 60 of file demandDrivenEntry.C.

◆ demandDrivenEntry() [4/4]

demandDrivenEntry ( const demandDrivenEntry< Type > &  dde)

Copy constructor.

Definition at line 80 of file demandDrivenEntry.C.

Member Function Documentation

◆ initialise()

void initialise ( ) const
inline

Initialise.

Definition at line 31 of file demandDrivenEntryI.H.

◆ value()

const Type & value ( ) const
inline

◆ setValue()

void setValue ( const Type &  value)
inline

Set the value.

Definition at line 51 of file demandDrivenEntryI.H.

Referenced by ThermoParcel< ParcelType >::constantProperties::setTMax().

Here is the caller graph for this function:

◆ reset()

void reset ( )
inline

Reset the demand-driven entry.

Definition at line 60 of file demandDrivenEntryI.H.


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