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

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... | |
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 53 of file demandDrivenEntry.H.
| demandDrivenEntry | ( | const dictionary & | dict, |
| const Type & | value | ||
| ) |
Constructors.
Construct from dictionary and value - cannot be re-read
Definition at line 31 of file demandDrivenEntry.C.
| demandDrivenEntry | ( | const dictionary & | dict, |
| const word & | keyword | ||
| ) |
Construct from dictionary and keyword.
Definition at line 45 of file demandDrivenEntry.C.
| demandDrivenEntry | ( | const dictionary & | dict, |
| const word & | keyword, | ||
| const Type & | defaultValue, | ||
| const bool | readIfPresent = true |
||
| ) |
Construct from dictionary, keyword and default value.
Definition at line 59 of file demandDrivenEntry.C.
References dictionary::readIfPresent().

| demandDrivenEntry | ( | const demandDrivenEntry< Type > & | dde | ) |
Copy constructor.
Definition at line 80 of file demandDrivenEntry.C.
|
inline |
Initialise.
Definition at line 31 of file demandDrivenEntryI.H.
|
inline |
Return the value.
Definition at line 42 of file demandDrivenEntryI.H.
|
inline |
Set the value.
Definition at line 51 of file demandDrivenEntryI.H.
|
inline |
Reset the demand-driven entry.
Definition at line 60 of file demandDrivenEntryI.H.