QuantLib_Observer

Langue: en

Autres versions - même langue

Version: 375734 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

QuantLib::Observer -

Object that gets notified when a given observable changes.

SYNOPSIS


#include <ql/patterns/observable.hpp>

Inherited by BootstrapHelper< YoYInflationTermStructure >, BootstrapHelper< YoYOptionletVolatilitySurface >, BootstrapHelper< ZeroInflationTermStructure >, GenericEngine< Arguments, Results >, GenericEngine< BarrierOption::arguments, BarrierOption::results >, GenericEngine< BasketOption::arguments, BasketOption::results >, GenericEngine< Bond::arguments, Bond::results >, GenericEngine< CallableBond::arguments, CallableBond::results >, GenericEngine< CapFloor::arguments, CapFloor::results >, GenericEngine< CdsOption::arguments, CdsOption::results >, GenericEngine< CliquetOption::arguments, CliquetOption::results >, GenericEngine< CompoundOption::arguments, CompoundOption::results >, GenericEngine< ContinuousAveragingAsianOption::arguments, ContinuousAveragingAsianOption::results >, GenericEngine< ContinuousFixedLookbackOption::arguments, ContinuousFixedLookbackOption::results >, GenericEngine< ContinuousFloatingLookbackOption::arguments, ContinuousFloatingLookbackOption::results >, GenericEngine< ConvertibleBond::option::arguments, ConvertibleBond::option::results >, GenericEngine< CreditDefaultSwap::arguments, CreditDefaultSwap::results >, GenericEngine< DiscreteAveragingAsianOption::arguments, DiscreteAveragingAsianOption::results >, GenericEngine< DividendBarrierOption::arguments, DividendBarrierOption::results >, GenericEngine< DividendVanillaOption::arguments, DividendVanillaOption::results >, GenericEngine< EnergyCommodity::arguments, EnergyCommodity::results >, GenericEngine< EverestOption::arguments, EverestOption::results >, GenericEngine< ForwardOptionArguments< VanillaOption::arguments >, VanillaOption::results >, GenericEngine< HimalayaOption::arguments, HimalayaOption::results >, GenericEngine< Instr::arguments, QuantoOptionResults< Instr::results > >, GenericEngine< MultiAssetOption::arguments, MultiAssetOption::results >, GenericEngine< OneAssetOption::arguments, OneAssetOption::results >, GenericEngine< PagodaOption::arguments, PagodaOption::results >, GenericEngine< PathMultiAssetOption::arguments, PathMultiAssetOption::results >, GenericEngine< Swap::arguments, Swap::results >, GenericEngine< Swaption::arguments, Swaption::results >, GenericEngine< SyntheticCDO::arguments, SyntheticCDO::results >, GenericEngine< VanillaOption::arguments, VanillaOption::results >, GenericEngine< VanillaSwap::arguments, VanillaSwap::results >, GenericEngine< VarianceOption::arguments, VarianceOption::results >, GenericEngine< VarianceSwap::arguments, VarianceSwap::results >, GenericEngine< YearOnYearInflationSwap::arguments, YearOnYearInflationSwap::results >, GenericEngine< YoYInflationCapFloor::arguments, YoYInflationCapFloor::results >, GenericEngine< ZeroCouponInflationSwap::arguments, ZeroCouponInflationSwap::results >, BootstrapHelper< TS >, CalibratedModel, CalibrationHelper, Claim, CommodityIndex, CompositeQuote< BinaryFunction >, ConstantRecoveryModel, CotSwapToFwdAdapterFactory, DerivedQuote< UnaryFunction >, FlatVolFactory, FloatingRateCoupon, FloatingRateCouponPricer [virtual], ForwardValueQuote, FuturesConvAdjustmentQuote, FwdToCotSwapAdapterFactory, GenericEngine< ArgumentsType, ResultsType >, Handle< T >::Link, IndexedCashFlow, InflationCoupon, InflationCouponPricer [virtual], InflationIndex, InterestRateIndex, LastFixingQuote, LazyObject [virtual], SmileSection [virtual], StochasticProcess, and TermStructure [virtual].

Public Member Functions


Observer (const Observer &)

Observer & operator= (const Observer &)

void registerWith (const boost::shared_ptr< Observable > &)

void unregisterWith (const boost::shared_ptr< Observable > &)

virtual void update ()=0

Detailed Description

Object that gets notified when a given observable changes.

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, CappedFlooredYoYInflationCoupon, DigitalCoupon, FloatingRateCoupon, IndexedCashFlow, InflationCoupon, CommodityIndex, ConstantRecoveryModel, FdHestonHullWhiteVanillaEngine, FdHestonVanillaEngine, PiecewiseYoYOptionletVolatilityCurve< Interpolator, Bootstrap, Traits >, AbcdAtmVolCurve, InflationIndex, InterestRateIndex, Claim, LazyObject, GenericEngine< ArgumentsType, ResultsType >, LatticeShortRateModelEngine< Arguments, Results >, AnalyticHestonHullWhiteEngine, CompositeQuote< BinaryFunction >, DerivedQuote< UnaryFunction >, ForwardSwapQuote, ForwardValueQuote, FuturesConvAdjustmentQuote, LastFixingQuote, PiecewiseDefaultCurve< Traits, Interpolator, Bootstrap >, PiecewiseYoYInflationCurve< Interpolator, Bootstrap, Traits >, PiecewiseZeroInflationCurve< Interpolator, Bootstrap, Traits >, CapFloorTermVolSurface, StrippedOptionletAdapter, SmileSection, CmsMarket, FittedBondDiscountCurve, FlatForward, PiecewiseYieldCurve< Traits, Interpolator, Bootstrap >, GenericEngine< EnergyCommodity::arguments, EnergyCommodity::results >, GenericEngine< ForwardOptionArguments< VanillaOption::arguments >, VanillaOption::results >, GenericEngine< YearOnYearInflationSwap::arguments, YearOnYearInflationSwap::results >, GenericEngine< VarianceSwap::arguments, VarianceSwap::results >, GenericEngine< PagodaOption::arguments, PagodaOption::results >, GenericEngine< Arguments, Results >, GenericEngine< ContinuousFixedLookbackOption::arguments, ContinuousFixedLookbackOption::results >, GenericEngine< CreditDefaultSwap::arguments, CreditDefaultSwap::results >, GenericEngine< CapFloor::arguments, CapFloor::results >, GenericEngine< HimalayaOption::arguments, HimalayaOption::results >, GenericEngine< EverestOption::arguments, EverestOption::results >, GenericEngine< MultiAssetOption::arguments, MultiAssetOption::results >, GenericEngine< CompoundOption::arguments, CompoundOption::results >, GenericEngine< CdsOption::arguments, CdsOption::results >, GenericEngine< SyntheticCDO::arguments, SyntheticCDO::results >, GenericEngine< ContinuousFloatingLookbackOption::arguments, ContinuousFloatingLookbackOption::results >, GenericEngine< CliquetOption::arguments, CliquetOption::results >, GenericEngine< OneAssetOption::arguments, OneAssetOption::results >, GenericEngine< DividendBarrierOption::arguments, DividendBarrierOption::results >, GenericEngine< ContinuousAveragingAsianOption::arguments, ContinuousAveragingAsianOption::results >, GenericEngine< PathMultiAssetOption::arguments, PathMultiAssetOption::results >, GenericEngine< VanillaSwap::arguments, VanillaSwap::results >, GenericEngine< ConvertibleBond::option::arguments, ConvertibleBond::option::results >, GenericEngine< VarianceOption::arguments, VarianceOption::results >, GenericEngine< BarrierOption::arguments, BarrierOption::results >, GenericEngine< Swaption::arguments, Swaption::results >, GenericEngine< YoYInflationCapFloor::arguments, YoYInflationCapFloor::results >, GenericEngine< CallableBond::arguments, CallableBond::results >, GenericEngine< DiscreteAveragingAsianOption::arguments, DiscreteAveragingAsianOption::results >, GenericEngine< VanillaOption::arguments, VanillaOption::results >, GenericEngine< Swap::arguments, Swap::results >, GenericEngine< Instr::arguments, QuantoOptionResults< Instr::results > >, GenericEngine< Bond::arguments, Bond::results >, GenericEngine< ZeroCouponInflationSwap::arguments, ZeroCouponInflationSwap::results >, GenericEngine< DividendVanillaOption::arguments, DividendVanillaOption::results >, GenericEngine< BasketOption::arguments, BasketOption::results >, LatticeShortRateModelEngine< CapFloor::arguments, CapFloor::results >, LatticeShortRateModelEngine< VanillaSwap::arguments, VanillaSwap::results >, LatticeShortRateModelEngine< Swaption::arguments, Swaption::results >, and LatticeShortRateModelEngine< CallableBond::arguments, CallableBond::results >.

Author

Generated automatically by Doxygen for QuantLib from the source code.