Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
SavedObservableSettings Class Reference

#include <qle/utilities/savedobservablesettings.hpp>

+ Collaboration diagram for SavedObservableSettings:

Public Member Functions

 SavedObservableSettings ()
 
 ~SavedObservableSettings ()
 
bool updatesEnabled () const
 
bool updatesDeferred () const
 

Private Attributes

bool updatesEnabled_
 
bool updatesDeferred_
 

Detailed Description

Definition at line 26 of file savedobservablesettings.hpp.

Constructor & Destructor Documentation

◆ SavedObservableSettings()

Definition at line 28 of file savedobservablesettings.hpp.

28 {
29 updatesEnabled_ = QuantLib::ObservableSettings::instance().updatesEnabled();
30 updatesDeferred_ = QuantLib::ObservableSettings::instance().updatesDeferred();
31 }

◆ ~SavedObservableSettings()

Definition at line 32 of file savedobservablesettings.hpp.

32 {
33 // Restore observable settings
35 QuantLib::ObservableSettings::instance().enableUpdates();
36 else
37 QuantLib::ObservableSettings::instance().disableUpdates(updatesDeferred_);
38 }

Member Function Documentation

◆ updatesEnabled()

bool updatesEnabled ( ) const

Definition at line 40 of file savedobservablesettings.hpp.

40{ return updatesEnabled_; }

◆ updatesDeferred()

bool updatesDeferred ( ) const

Definition at line 41 of file savedobservablesettings.hpp.

41{ return updatesDeferred_; }

Member Data Documentation

◆ updatesEnabled_

bool updatesEnabled_
private

Definition at line 44 of file savedobservablesettings.hpp.

◆ updatesDeferred_

bool updatesDeferred_
private

Definition at line 45 of file savedobservablesettings.hpp.