Observer class for Model Builders. More...
#include <qle/models/marketobserver.hpp>
Public Member Functions | |
MarketObserver () | |
void | addObservable (QuantLib::ext::shared_ptr< Observable > observable) |
Add an observable. More... | |
void | update () override |
Observer interface. More... | |
bool | hasUpdated (const bool reset) |
Returns true if has been updated, reset updated flag if required. More... | |
Private Attributes | |
bool | updated_ |
Flag to indicate if updated. More... | |
Observer class for Model Builders.
This class holds all observables of a builder, except special ones like vol surfaces that should be handled separately in the builders to determine whether a recalibration of the model is required.
Definition at line 39 of file marketobserver.hpp.
MarketObserver | ( | ) |
Definition at line 41 of file marketobserver.hpp.
void addObservable | ( | QuantLib::ext::shared_ptr< Observable > | observable | ) |
Add an observable.
Definition at line 57 of file marketobserver.hpp.
|
override |
Observer interface.
Definition at line 62 of file marketobserver.hpp.
Returns true if has been updated, reset updated flag if required.
Definition at line 67 of file marketobserver.hpp.
|
private |
Flag to indicate if updated.
Definition at line 52 of file marketobserver.hpp.