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 &)
template<class T> void registerWith (const boost::shared_ptr< T > &h)
template<class T> void unregisterWith (const boost::shared_ptr< T > &h)
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 IndexedCoupon, ParCoupon, Xibor, LazyObject, BlackModel, GenericModelEngine, LatticeShortRateModelEngine, DerivedQuote, CompositeQuote, Link, CalibrationHelper, ShortRateModel, StochasticProcess, BlackScholesProcess, CompoundForward, DriftTermStructure, ExtendedDiscountCurve, FlatForward, ForwardSpreadedTermStructure, ImpliedTermStructure, QuantoTermStructure, RateHelper, ZeroSpreadedTermStructure, BlackConstantVol, BlackVarianceCurve, BlackVarianceSurface, ImpliedVolTermStructure, LocalConstantVol, LocalVolCurve, LocalVolSurface, GenericModelEngine< ShortRateModel, Arguments, Results >, GenericModelEngine< BlackModel, CapFloor::arguments, CapFloor::results >, GenericModelEngine< OneFactorAffineModel, Swaption::arguments, Swaption::results >, GenericModelEngine< G2, Swaption::arguments, Swaption::results >, GenericModelEngine< AffineModel, CapFloor::arguments, CapFloor::results >, GenericModelEngine< BlackModel, Swaption::arguments, Swaption::results >, GenericModelEngine< ShortRateModel, CapFloor::arguments, CapFloor::results >, GenericModelEngine< ShortRateModel, Swaption::arguments, Swaption::results >, LatticeShortRateModelEngine< CapFloor::arguments, CapFloor::results >, and LatticeShortRateModelEngine< Swaption::arguments, Swaption::results >.


QuantLib.org
QuantLib
Hosted by
SourceForge.net Logo
Documentation generated by
doxygen