Observer Class Reference
[Design patterns]

#include <ql/patterns/observable.hpp>

Inheritance diagram for Observer:

Inheritance graph
[legend]
List of all members.

Detailed Description

Object that gets notified when a given observable changes.


Public Member Functions

 Observer (const Observer &)
Observeroperator= (const Observer &)
void registerWith (const boost::shared_ptr< Observable > &)
void unregisterWith (const boost::shared_ptr< Observable > &)
virtual void update ()=0


Member Function Documentation

virtual void update (  )  [pure virtual]

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.

Implemented in CappedFlooredCoupon, FloatingRateCouponPricer, FloatingRateCoupon, InterestRateIndex, CalibrationHelper, CalibratedModel, LazyObject, BlackCapFloorEngine, MarketModelCapFloorEngine, MCHullWhiteCapFloorEngine, GenericModelEngine, LatticeShortRateModelEngine, BlackSwaptionEngine, GeneralizedBlackScholesProcess, HestonProcess, CompositeQuote, DerivedQuote, ForwardValueQuote, FuturesConvAdjustmentQuote, StochasticProcess, TermStructure, CapVolatilityVector, DecInterpCapletVolStructure, CmsMarket, SwaptionVolatilityCube, SwaptionVolatilityMatrix, ExtendedDiscountCurve, FlatForward, RateHelper, PiecewiseYieldCurve, PiecewiseZeroSpreadedTermStructure, RelativeDateRateHelper, GenericModelEngine< ShortRateModel, Arguments, Results >, GenericModelEngine< LiborForwardModel, Swaption::arguments, Swaption::results >, GenericModelEngine< ShortRateModel, VanillaSwap::arguments, VanillaSwap::results >, GenericModelEngine< OneFactorAffineModel, Swaption::arguments, Swaption::results >, GenericModelEngine< G2, Swaption::arguments, Swaption::results >, GenericModelEngine< AffineModel, CapFloor::arguments, CapFloor::results >, GenericModelEngine< ShortRateModel, CapFloor::arguments, CapFloor::results >, GenericModelEngine< ShortRateModel, Swaption::arguments, Swaption::results >, GenericModelEngine< HestonModel, VanillaOption::arguments, VanillaOption::results >, LatticeShortRateModelEngine< CapFloor::arguments, CapFloor::results >, LatticeShortRateModelEngine< VanillaSwap::arguments, VanillaSwap::results >, and LatticeShortRateModelEngine< Swaption::arguments, Swaption::results >.