QuantLib: a free/open-source library for quantitative finance
Reference manual - version 1.40
Loading...
Searching...
No Matches
LazyObject::Defaults Class Reference

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

#include <ql/patterns/lazyobject.hpp>

Inheritance diagram for LazyObject::Defaults:

Public Member Functions

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

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

Detailed Description

Per-session settings for the LazyObject class.

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.

◆ alwaysForwardNotifications()

void alwaysForwardNotifications ( )

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