Loading...
Searching...
No Matches
demandDrivenEntry< Type > Class Template Reference

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

#include <demandDrivenEntry.H>

Inheritance diagram for demandDrivenEntry< Type >:

Public Member Functions

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

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 51 of file demandDrivenEntry.H.

Constructor & Destructor Documentation

◆ demandDrivenEntry() [1/4]

template<class Type>
demandDrivenEntry ( const dictionary & dict,
const Type & value )

Constructors.

Construct from dictionary and value - cannot be re-read

Definition at line 26 of file demandDrivenEntry.C.

References dict, and value().

Referenced by demandDrivenEntry().

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

◆ demandDrivenEntry() [2/4]

template<class Type>
demandDrivenEntry ( const dictionary & dict,
const word & keyword )

Construct from dictionary and keyword.

Definition at line 40 of file demandDrivenEntry.C.

References dict, and Foam::Zero.

◆ demandDrivenEntry() [3/4]

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

Construct from dictionary, keyword and default value.

Definition at line 54 of file demandDrivenEntry.C.

References dict, and readIfPresent().

Here is the call graph for this function:

◆ demandDrivenEntry() [4/4]

template<class Type>
demandDrivenEntry ( const demandDrivenEntry< Type > & dde)

Copy constructor.

Definition at line 75 of file demandDrivenEntry.C.

References demandDrivenEntry().

Here is the call graph for this function:

Member Function Documentation

◆ initialise()

template<class Type>
void initialise ( ) const
inline

Initialise.

Definition at line 26 of file demandDrivenEntryI.H.

Referenced by value().

Here is the caller graph for this function:

◆ value()

template<class Type>
const Type & value ( ) const
inline

Return the value.

Definition at line 37 of file demandDrivenEntryI.H.

References initialise().

Referenced by demandDrivenEntry(), and setValue().

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

◆ setValue()

template<class Type>
void setValue ( const Type & value)
inline

Set the value.

Definition at line 46 of file demandDrivenEntryI.H.

References value().

Here is the call graph for this function:

◆ reset()

template<class Type>
void reset ( )
inline

Reset the demand-driven entry.

Definition at line 55 of file demandDrivenEntryI.H.


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