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

void QuantLib::Instrument::setPricingEngine ( const boost::shared_ptr< PricingEngine > &  e ) [inline, inherited]

set the pricing engine to be used.

Warning:
calling this method will have no effects in case the performCalculation method was overridden in a derived class.

Definition at line 133 of file instrument.hpp.

References QuantLib::LazyObject::update().

                                                                           {
        if (engine_)
            unregisterWith(engine_);
        engine_ = e;
        if (engine_)
            registerWith(engine_);
        // trigger (lazy) recalculation and notify observers
        update();
    }

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index