settlementFromExpiry.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_SETTLEMENTFROMEXPIRY_HPP
2 #define JULIAN_SETTLEMENTFROMEXPIRY_HPP
3 
6 #include <dates/date.hpp>
7 #include <dates/tenor.hpp>
8 
9 namespace julian {
10 
27  public:
28 
30 
31  virtual Date calculateSettlementDate(Date, Tenor, const Calendar&) const;
32  virtual Date calculateExpiryDate(Date, Tenor, const Calendar&) const;
33 
34  virtual SettlementFromExpiry* clone() const;
35 
36  virtual std::string info() const;
37 
38  virtual ~SettlementFromExpiry();
39  friend class boost::serialization::access;
40  private:
41 
44  template<class Archive>
45  void serialize(Archive & , const unsigned int){
46  boost::serialization::base_object<SettlementDateConvention>(*this);
47  }
48  };
49 }
50 #endif
virtual ~SettlementFromExpiry()
destructor
Definition: settlementFromExpiry.cpp:57
Interface for classes implementing settlement date conventions.
Definition: settlementDateConvention.hpp:25
Definition: cadHoliday.cpp:3
Class implements calendar object.
Definition: calendar.hpp:30
File contains definition of date class.
File contains the definition of calendar class.
SettlementFromExpiry()
Constructor.
Definition: settlementFromExpiry.cpp:11
virtual std::string info() const
informations about class
Definition: settlementFromExpiry.cpp:48
Class implements a date object.
Definition: date.hpp:27
File contains definition of tenor class.
File contains interface of settlement convention.
void serialize(Archive &, const unsigned int)
interface used by Boost serialization library
Definition: settlementFromExpiry.hpp:45
Class implements a tenor object.
Definition: tenor.hpp:23
virtual SettlementFromExpiry * clone() const
Virtual copy constructor.
Definition: settlementFromExpiry.cpp:40
Class calculating settlement date from expiry date.
Definition: settlementFromExpiry.hpp:26
virtual Date calculateExpiryDate(Date, Tenor, const Calendar &) const
Constructor.
Definition: settlementFromExpiry.cpp:30
virtual Date calculateSettlementDate(Date, Tenor, const Calendar &) const
Constructor.
Definition: settlementFromExpiry.cpp:19