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)
 
 demandDrivenEntry (const dictionary &dict, const word &keyword)
 
 demandDrivenEntry (const dictionary &dict, const word &keyword, const Type &defaultValue, const bool readIfPresent=true)
 
 demandDrivenEntry (const demandDrivenEntry &dde)
 
void initialise () const
 
const Type & value () const
 
void setValue (const Type &value)
 
void reset ()
 

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]

demandDrivenEntry ( const dictionary dict,
const Type &  value 
)

Definition at line 27 of file demandDrivenEntry.C.

◆ demandDrivenEntry() [2/4]

demandDrivenEntry ( const dictionary dict,
const word keyword 
)

Definition at line 41 of file demandDrivenEntry.C.

◆ demandDrivenEntry() [3/4]

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

Definition at line 55 of file demandDrivenEntry.C.

◆ demandDrivenEntry() [4/4]

demandDrivenEntry ( const demandDrivenEntry< Type > &  dde)

Definition at line 75 of file demandDrivenEntry.C.

Member Function Documentation

◆ initialise()

void initialise
inline

Definition at line 26 of file demandDrivenEntryI.H.

◆ value()

const Type & value
inline

Definition at line 37 of file demandDrivenEntryI.H.

◆ setValue()

void setValue ( const Type &  value)
inline

Definition at line 46 of file demandDrivenEntryI.H.

◆ reset()

void reset
inline

Definition at line 55 of file demandDrivenEntryI.H.


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