QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
LazyObject::Defaults Class Reference

Per-session settings for the LazyObject class. More...

#include <lazyobject.hpp>

+ Inheritance diagram for LazyObject::Defaults:
+ Collaboration diagram for LazyObject::Defaults:

Public Member Functions

void forwardFirstNotificationOnly ()
 
void alwaysForwardNotifications ()
 
bool forwardsAllNotifications () const
 returns the current default More...
 
- Public Member Functions inherited from Singleton< LazyObject::Defaults >
 Singleton (const Singleton &)=delete
 
 Singleton (Singleton &&)=delete
 
Singletonoperator= (const Singleton &)=delete
 
Singletonoperator= (Singleton &&)=delete
 
 ~Singleton ()=default
 

Private Member Functions

 Defaults ()=default
 

Private Attributes

bool forwardsAllNotifications_ = true
 

Friends

class Singleton< LazyObject::Defaults >
 

Additional Inherited Members

- Static Public Member Functions inherited from Singleton< LazyObject::Defaults >
static LazyObject::Defaultsinstance ()
 access to the unique instance More...
 
- Protected Member Functions inherited from Singleton< LazyObject::Defaults >
 Singleton ()=default
 

Detailed Description

Per-session settings for the LazyObject class.

Definition at line 147 of file lazyobject.hpp.

Constructor & Destructor Documentation

◆ Defaults()

Defaults ( )
privatedefault

Member Function Documentation

◆ forwardFirstNotificationOnly()

void forwardFirstNotificationOnly ( )

by default, lazy objects created after calling this method will only forward the first notification after successful recalculation; see LazyObject::forwardFirstNotificationOnly for details.

Definition at line 158 of file lazyobject.hpp.

◆ alwaysForwardNotifications()

void alwaysForwardNotifications ( )

by default, lazy objects created after calling this method will always forward notifications; see LazyObject::alwaysForwardNotifications for details.

Definition at line 166 of file lazyobject.hpp.

◆ forwardsAllNotifications()

bool forwardsAllNotifications ( ) const

returns the current default

Definition at line 171 of file lazyobject.hpp.

Friends And Related Function Documentation

◆ Singleton< LazyObject::Defaults >

friend class Singleton< LazyObject::Defaults >
friend

Definition at line 138 of file lazyobject.hpp.

Member Data Documentation

◆ forwardsAllNotifications_

bool forwardsAllNotifications_ = true
private

Definition at line 179 of file lazyobject.hpp.