Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ namespace QuantLib {
}

Real AnalyticPartialTimeBarrierOptionEngine::calculate(PartialTimeBarrierOption::arguments& arguments,
ext::shared_ptr<PlainVanillaPayoff> payoff,
ext::shared_ptr<GeneralizedBlackScholesProcess> process) const {
const ext::shared_ptr<PlainVanillaPayoff>& payoff,
const ext::shared_ptr<GeneralizedBlackScholesProcess>& process) const {
Barrier::Type barrierType = arguments.barrierType;
PartialBarrier::Range barrierRange = arguments.barrierRange;
Rate r = process->riskFreeRate()->zeroRate(residualTime(), Continuous,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ namespace QuantLib {
private:
ext::shared_ptr<GeneralizedBlackScholesProcess> process_;
Real calculate(PartialTimeBarrierOption::arguments& arguments,
ext::shared_ptr<PlainVanillaPayoff> payoff,
ext::shared_ptr<GeneralizedBlackScholesProcess> process) const;
const ext::shared_ptr<PlainVanillaPayoff>& payoff,
const ext::shared_ptr<GeneralizedBlackScholesProcess>& process) const;
Real underlying() const;
Time residualTime() const;
Time coverEventTime() const;
Expand Down