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

instrument callability More...

#include <callabilityschedule.hpp>

+ Inheritance diagram for Callability:
+ Collaboration diagram for Callability:

Public Types

enum  Type { Call , Put }
 type of the callability More...
 

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 More...
 
- Public Member Functions inherited from Event
 ~Event () override=default
 
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 More...
 
- Public Member Functions inherited from Observable
 Observable ()
 
 Observable (const Observable &)
 
Observableoperator= (const Observable &)
 
 Observable (Observable &&)=delete
 
Observableoperator= (Observable &&)=delete
 
virtual ~Observable ()=default
 
void notifyObservers ()
 

Visitability

ext::optional< Bond::Priceprice_
 
Type type_
 
Date date_
 
void accept (AcyclicVisitor &) override
 

Detailed Description

instrument callability

Definition at line 39 of file callabilityschedule.hpp.

Member Enumeration Documentation

◆ Type

enum Type

type of the callability

Enumerator
Call 
Put 

Definition at line 42 of file callabilityschedule.hpp.

Constructor & Destructor Documentation

◆ Callability()

Callability ( const Bond::Price price,
Type  type,
const Date date 
)

Definition at line 44 of file callabilityschedule.hpp.

Member Function Documentation

◆ price()

const Bond::Price & price ( ) const

Definition at line 46 of file callabilityschedule.hpp.

◆ type()

Type type ( ) const

Definition at line 50 of file callabilityschedule.hpp.

◆ date()

Date date ( ) const
overridevirtual

returns the date at which the event occurs

Implements Event.

Definition at line 53 of file callabilityschedule.hpp.

◆ accept()

void accept ( AcyclicVisitor v)
overridevirtual

Reimplemented from Event.

Definition at line 65 of file callabilityschedule.hpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ price_

ext::optional<Bond::Price> price_
private

Definition at line 60 of file callabilityschedule.hpp.

◆ type_

Type type_
private

Definition at line 61 of file callabilityschedule.hpp.

◆ date_

Date date_
private

Definition at line 62 of file callabilityschedule.hpp.