25#ifndef quantlib_event_hpp
26#define quantlib_event_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
date- and time-related classes, typedefs and enumerations
const boost::none_t & nullopt
observer/observable pattern
Maps optional to either the boost or std implementation.