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

void QuantLib::CdsOption::setupArguments ( PricingEngine::arguments *   )  const [virtual]

When a derived argument structure is defined for an instrument, this method should be overridden to fill it. This is mandatory in case a pricing engine is used.

Reimplemented from QuantLib::Option.

Definition at line 90 of file cdsoption.cpp.

References QuantLib::CdsOption::arguments::knocksOut, QL_REQUIRE, QuantLib::Option::setupArguments(), and QuantLib::CdsOption::arguments::swap.


        CdsOption::arguments* arguments =

        QL_REQUIRE(arguments != 0, "wrong argument type");

        arguments->swap      = swap_;
        arguments->knocksOut = knocksOut_;

Generated by  Doxygen 1.6.0   Back to index