25#ifndef quantlib_event_hpp
26#define quantlib_event_hpp
28#include <ql/time/date.hpp>
29#include <ql/patterns/observable.hpp>
30#include <ql/optional.hpp>
55 ext::optional<bool> includeRefDate =
ext::nullopt)
const;
degenerate base class for the Acyclic Visitor pattern
virtual void accept(AcyclicVisitor &)
~Event() override=default
virtual Date date() const =0
returns the date at which the event occurs
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
Object that notifies its changes to a set of observers.
simple_event(const Date &date)
Date date() const override
returns the date at which the event occurs
const boost::none_t & nullopt