demandDrivenEntry< Type > Class Template Reference

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

Inheritance diagram for demandDrivenEntry< Type >:
[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 55 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 34 of file demandDrivenEntry.C.

◆ demandDrivenEntry() [2/4]

demandDrivenEntry ( const dictionary dict,
const word keyword 
)

Construct from dictionary and keyword.

Definition at line 48 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 62 of file demandDrivenEntry.C.

◆ demandDrivenEntry() [4/4]

demandDrivenEntry ( const demandDrivenEntry< Type > &  dde)

Copy constructor.

Definition at line 82 of file demandDrivenEntry.C.

Member Function Documentation

◆ initialise()

void initialise ( ) const
inline

Initialise.

Definition at line 33 of file demandDrivenEntryI.H.

◆ value()

const Type & value ( ) const
inline

Return the value.

Definition at line 44 of file demandDrivenEntryI.H.

◆ setValue()

void setValue ( const Type &  value)
inline

Set the value.

Definition at line 53 of file demandDrivenEntryI.H.

◆ reset()

void reset ( )
inline

Reset the demand-driven entry.

Definition at line 62 of file demandDrivenEntryI.H.


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