Logo Search packages:      
Sourcecode: quantlib version File versions  Download package

void QuantLib::LazyObject::update (  ) [inline, virtual, inherited]

This method must be implemented in derived classes. An instance of Observer does not call this method directly: instead, it will be called by the observables the instance registered with when they need to notify any changes.

Implements QuantLib::Observer.

Reimplemented in QuantLib::PiecewiseYoYOptionletVolatilityCurve< Interpolator, Bootstrap, Traits >, QuantLib::AbcdAtmVolCurve, QuantLib::ForwardSwapQuote, QuantLib::PiecewiseDefaultCurve< Traits, Interpolator, Bootstrap >, QuantLib::PiecewiseYoYInflationCurve< Interpolator, Bootstrap, Traits >, QuantLib::PiecewiseZeroInflationCurve< Interpolator, Bootstrap, Traits >, QuantLib::CapFloorTermVolCurve, QuantLib::CapFloorTermVolSurface, QuantLib::InterpolatedSmileSection< Interpolator >, QuantLib::StrippedOptionletAdapter, QuantLib::SabrInterpolatedSmileSection, QuantLib::CmsMarket, QuantLib::SwaptionVolatilityDiscrete, QuantLib::FittedBondDiscountCurve, QuantLib::FlatForward, and QuantLib::PiecewiseYieldCurve< Traits, Interpolator, Bootstrap >.

Definition at line 102 of file lazyobject.hpp.

References QuantLib::Observable::notifyObservers().

Referenced by QuantLib::CompositeInstrument::add(), QuantLib::Instrument::setPricingEngine(), QuantLib::PiecewiseYieldCurve< Traits, Interpolator, Bootstrap >::update(), QuantLib::InterpolatedSmileSection< Interpolator >::update(), QuantLib::PiecewiseZeroInflationCurve< Interpolator, Bootstrap, Traits >::update(), QuantLib::PiecewiseYoYInflationCurve< Interpolator, Bootstrap, Traits >::update(), QuantLib::PiecewiseDefaultCurve< Traits, Interpolator, Bootstrap >::update(), and QuantLib::PiecewiseYoYOptionletVolatilityCurve< Interpolator, Bootstrap, Traits >::update().

                                   {
        // observers don't expect notifications from frozen objects
        // LazyObject forwards notifications only once until it has been 
        // recalculated
        if (!frozen_&& calculated_)
            notifyObservers();
        calculated_ = false;
    }

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index