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
simple_event Class Reference

#include <event.hpp>

+ Inheritance diagram for simple_event:
+ Collaboration diagram for simple_event:

Public Member Functions

 simple_event (const Date &date)
 
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...
 
virtual void accept (AcyclicVisitor &)
 
- Public Member Functions inherited from Observable
 Observable ()
 
 Observable (const Observable &)
 
Observableoperator= (const Observable &)
 
 Observable (Observable &&)=delete
 
Observableoperator= (Observable &&)=delete
 
virtual ~Observable ()=default
 
void notifyObservers ()
 

Private Attributes

Date date_
 

Detailed Description

Definition at line 69 of file event.hpp.

Constructor & Destructor Documentation

◆ simple_event()

simple_event ( const Date date)
explicit

Definition at line 71 of file event.hpp.

Member Function Documentation

◆ date()

Date date ( ) const
overridevirtual

returns the date at which the event occurs

Implements Event.

Definition at line 72 of file event.hpp.

Member Data Documentation

◆ date_

Date date_
private

Definition at line 75 of file event.hpp.