21using QuantLib::AcyclicVisitor;
23using QuantLib::Handle;
26using QuantLib::Visitor;
32 earliestDate_ = expiryDate;
33 pillarDate_ = expiryDate;
36FuturePriceHelper::FuturePriceHelper(Real price,
const Date& expiryDate)
38 earliestDate_ = expiryDate;
39 pillarDate_ = expiryDate;
42Real FuturePriceHelper::impliedQuote()
const {
43 QL_REQUIRE(termStructure_,
"FuturePriceHelper term structure not set.");
44 return termStructure_->price(pillarDate_);
47void FuturePriceHelper::accept(AcyclicVisitor& v) {
48 if (
auto vis =
dynamic_cast<Visitor<FuturePriceHelper>*
>(&v))
51 PriceHelper::accept(v);
FuturePriceHelper(const QuantLib::Handle< QuantLib::Quote > &price, const QuantLib::Date &expiryDate)