27#ifndef quantlib_imm_hpp
28#define quantlib_imm_hpp
39 V = 10,
X = 11,
Z = 12 };
43 bool mainCycle =
true);
46 static bool isIMMcode(
const std::string& in,
47 bool mainCycle =
true);
55 static std::string
code(
const Date& immDate);
63 static Date date(
const std::string& immCode,
72 bool mainCycle =
true);
80 bool mainCycle =
true,
89 bool mainCycle =
true);
96 static std::string
nextCode(
const std::string& immCode,
97 bool mainCycle =
true,
date- and time-related classes, typedefs and enumerations
Main cycle of the International Money Market (a.k.a. IMM) months.
static std::string nextCode(const Date &d=Date(), bool mainCycle=true)
next IMM code following the given date
static bool isIMMcode(const std::string &in, bool mainCycle=true)
returns whether or not the given string is an IMM code
static Date date(const std::string &immCode, const Date &referenceDate=Date())
static std::string code(const Date &immDate)
static bool isIMMdate(const Date &d, bool mainCycle=true)
returns whether or not the given date is an IMM date
static Date nextDate(const Date &d=Date(), bool mainCycle=true)
next IMM date following the given date