QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
PerformanceOptionPathPricer Class Reference

#include <mcperformanceengine.hpp>

+ Inheritance diagram for PerformanceOptionPathPricer:
+ Collaboration diagram for PerformanceOptionPathPricer:

Public Member Functions

 PerformanceOptionPathPricer (Option::Type type, Real strike, std::vector< DiscountFactor > discounts)
 
Real operator() (const Path &path) const override
 
- Public Member Functions inherited from PathPricer< Path >
virtual ~PathPricer ()=default
 
virtual Real operator() (const Path &path) const=0
 

Private Attributes

Real strike_
 
Option::Type type_
 
std::vector< DiscountFactordiscounts_
 

Additional Inherited Members

- Public Types inherited from PathPricer< Path >
typedef Real result_type
 

Detailed Description

Definition at line 107 of file mcperformanceengine.hpp.

Constructor & Destructor Documentation

◆ PerformanceOptionPathPricer()

PerformanceOptionPathPricer ( Option::Type  type,
Real  strike,
std::vector< DiscountFactor discounts 
)

Definition at line 25 of file mcperformanceengine.cpp.

Member Function Documentation

◆ operator()()

Real operator() ( const Path path) const
overridevirtual

Implements PathPricer< Path >.

Definition at line 30 of file mcperformanceengine.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ strike_

Real strike_
private

Definition at line 115 of file mcperformanceengine.hpp.

◆ type_

Option::Type type_
private

Definition at line 116 of file mcperformanceengine.hpp.

◆ discounts_

std::vector<DiscountFactor> discounts_
private

Definition at line 117 of file mcperformanceengine.hpp.