QuantLib: a free/open-source library for quantitative finance
Reference manual - version 1.40
Loading...
Searching...
No Matches
Callability Class Reference

instrument callability More...

#include <ql/instruments/callabilityschedule.hpp>

Inheritance diagram for Callability:

Public Types

enum  Type { Call , Put }
 type of the callability

Public Member Functions

 Callability (const Bond::Price &price, Type type, const Date &date)
const Bond::Priceprice () const
Type type () const
Event interface
Date date () const override
 returns the date at which the event occurs
Public Member Functions inherited from Event
virtual bool hasOccurred (const Date &refDate=Date(), ext::optional< bool > includeRefDate=ext::nullopt) const
 returns true if an event has already occurred before a date
Public Member Functions inherited from Observable
 Observable (const Observable &)
Observableoperator= (const Observable &)
 Observable (Observable &&)=delete
Observableoperator= (Observable &&)=delete
void notifyObservers ()

Visitability

void accept (AcyclicVisitor &) override

Detailed Description

instrument callability

Member Function Documentation

◆ date()

Date date ( ) const
overridevirtual

returns the date at which the event occurs

Implements Event.

◆ accept()

void accept ( AcyclicVisitor & v)
overridevirtual

Reimplemented from Event.