QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
#include <discretizedswaption.hpp>
Public Member Functions | |
DiscretizedSwaption (const Swaption::arguments &, const Date &referenceDate, const DayCounter &dayCounter) | |
void | reset (Size size) override |
![]() | |
DiscretizedOption (ext::shared_ptr< DiscretizedAsset > underlying, Exercise::Type exerciseType, std::vector< Time > exerciseTimes) | |
void | reset (Size size) override |
std::vector< Time > | mandatoryTimes () const override |
![]() | |
DiscretizedAsset () | |
virtual | ~DiscretizedAsset ()=default |
Time | time () const |
Time & | time () |
const Array & | values () const |
Array & | values () |
const ext::shared_ptr< Lattice > & | method () const |
void | initialize (const ext::shared_ptr< Lattice > &, Time t) |
void | rollback (Time to) |
void | partialRollback (Time to) |
Real | presentValue () |
void | preAdjustValues () |
void | postAdjustValues () |
void | adjustValues () |
Static Private Member Functions | |
static void | prepareSwaptionWithSnappedDates (const Swaption::arguments &args, const Date &referenceDate, const DayCounter &dayCounter, PricingEngine::arguments &snappedArgs, std::vector< CouponAdjustment > &fixedCouponAdjustments, std::vector< CouponAdjustment > &floatingCouponAdjustments) |
Private Attributes | |
Swaption::arguments | arguments_ |
Time | lastPayment_ |
Additional Inherited Members | |
![]() | |
enum class | CouponAdjustment { pre , post } |
![]() | |
void | postAdjustValuesImpl () override |
void | applyExerciseCondition () |
![]() | |
bool | isOnTime (Time t) const |
virtual void | preAdjustValuesImpl () |
![]() | |
ext::shared_ptr< DiscretizedAsset > | underlying_ |
Exercise::Type | exerciseType_ |
std::vector< Time > | exerciseTimes_ |
![]() | |
Time | time_ |
Time | latestPreAdjustment_ |
Time | latestPostAdjustment_ |
Array | values_ |
Definition at line 34 of file discretizedswaption.hpp.
DiscretizedSwaption | ( | const Swaption::arguments & | args, |
const Date & | referenceDate, | ||
const DayCounter & | dayCounter | ||
) |
|
overridevirtual |
This method should initialize the asset values to an Array of the given size and with values depending on the particular asset.
Reimplemented from DiscretizedOption.
Definition at line 72 of file discretizedswaption.cpp.
|
staticprivate |
Definition at line 77 of file discretizedswaption.cpp.
|
private |
Definition at line 42 of file discretizedswaption.hpp.
|
private |
Definition at line 43 of file discretizedswaption.hpp.