Class for demand-driven dictionary entries. More...
#include <demandDrivenEntry.H>

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. | |
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
Definition at line 51 of file demandDrivenEntry.H.
| 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.
Referenced by demandDrivenEntry().


| 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 | ( | 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().

| demandDrivenEntry | ( | const demandDrivenEntry< Type > & | dde | ) |
Copy constructor.
Definition at line 75 of file demandDrivenEntry.C.
References demandDrivenEntry().

|
inline |
Initialise.
Definition at line 26 of file demandDrivenEntryI.H.
Referenced by value().

|
inline |
Return the value.
Definition at line 37 of file demandDrivenEntryI.H.
References initialise().
Referenced by demandDrivenEntry(), and setValue().


|
inline |
Set the value.
Definition at line 46 of file demandDrivenEntryI.H.
References value().

|
inline |
Reset the demand-driven entry.
Definition at line 55 of file demandDrivenEntryI.H.