QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Per-session settings for the LazyObject class. More...
#include <lazyobject.hpp>
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 | |
Singleton & | operator= (const Singleton &)=delete |
Singleton & | operator= (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::Defaults & | instance () |
access to the unique instance More... | |
Protected Member Functions inherited from Singleton< LazyObject::Defaults > | |
Singleton ()=default | |
Per-session settings for the LazyObject class.
Definition at line 147 of file lazyobject.hpp.
|
privatedefault |
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.
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.
bool forwardsAllNotifications | ( | ) | const |
returns the current default
Definition at line 171 of file lazyobject.hpp.
|
friend |
Definition at line 138 of file lazyobject.hpp.
|
private |
Definition at line 179 of file lazyobject.hpp.