QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
ECB Struct Reference

European Central Bank reserve maintenance dates. More...

#include <ql/time/ecb.hpp>

+ Collaboration diagram for ECB:

Static Public Member Functions

static const std::set< Date > & knownDates ()
 
static void addDate (const Date &d)
 
static void removeDate (const Date &d)
 
static Date date (Month m, Year y)
 maintenance period start date in the given month/year More...
 
static Date date (const std::string &ecbCode, const Date &referenceDate=Date())
 
static std::string code (const Date &ecbDate)
 
static Date nextDate (const Date &d=Date())
 next maintenance period start date following the given date More...
 
static Date nextDate (const std::string &ecbCode, const Date &referenceDate=Date())
 next maintenance period start date following the given ECB code More...
 
static std::vector< DatenextDates (const Date &d=Date())
 next maintenance period start dates following the given date More...
 
static std::vector< DatenextDates (const std::string &ecbCode, const Date &referenceDate=Date())
 next maintenance period start dates following the given code More...
 
static bool isECBdate (const Date &d)
 
static bool isECBcode (const std::string &in)
 returns whether or not the given string is an ECB code More...
 
static std::string nextCode (const Date &d=Date())
 next ECB code following the given date More...
 
static std::string nextCode (const std::string &ecbCode)
 next ECB code following the given code More...
 

Detailed Description

European Central Bank reserve maintenance dates.

Definition at line 34 of file ecb.hpp.

Member Function Documentation

◆ knownDates()

const std::set< Date > & knownDates ( )
static

Definition at line 82 of file ecb.cpp.

+ Here is the caller graph for this function:

◆ addDate()

void addDate ( const Date d)
static

Definition at line 86 of file ecb.cpp.

◆ removeDate()

void removeDate ( const Date d)
static

Definition at line 90 of file ecb.cpp.

◆ date() [1/2]

static Date date ( Month  m,
Year  y 
)
static

maintenance period start date in the given month/year

Definition at line 41 of file ecb.hpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ date() [2/2]

Date date ( const std::string &  ecbCode,
const Date referenceDate = Date() 
)
static

returns the ECB date for the given ECB code (e.g. March xxth, 2013 for MAR10).

Warning:
It raises an exception if the input string is not an ECB code

Definition at line 94 of file ecb.cpp.

+ Here is the call graph for this function:

◆ code()

string code ( const Date ecbDate)
static

returns the ECB code for the given date (e.g. MAR10 for March xxth, 2010).

Warning:
It raises an exception if the input date is not an ECB date

Definition at line 129 of file ecb.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nextDate() [1/2]

Date nextDate ( const Date d = Date())
static

next maintenance period start date following the given date

Definition at line 190 of file ecb.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nextDate() [2/2]

static Date nextDate ( const std::string &  ecbCode,
const Date referenceDate = Date() 
)
static

next maintenance period start date following the given ECB code

Definition at line 65 of file ecb.hpp.

+ Here is the call graph for this function:

◆ nextDates() [1/2]

std::vector< Date > nextDates ( const Date d = Date())
static

next maintenance period start dates following the given date

Definition at line 202 of file ecb.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nextDates() [2/2]

static std::vector< Date > nextDates ( const std::string &  ecbCode,
const Date referenceDate = Date() 
)
static

next maintenance period start dates following the given code

Definition at line 74 of file ecb.hpp.

+ Here is the call graph for this function:

◆ isECBdate()

static bool isECBdate ( const Date d)
static

returns whether or not the given date is a maintenance period start date

Definition at line 81 of file ecb.hpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isECBcode()

bool isECBcode ( const std::string &  in)
static

returns whether or not the given string is an ECB code

Definition at line 215 of file ecb.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nextCode() [1/2]

static std::string nextCode ( const Date d = Date())
static

next ECB code following the given date

Definition at line 90 of file ecb.hpp.

+ Here is the call graph for this function:

◆ nextCode() [2/2]

string nextCode ( const std::string &  ecbCode)
static

next ECB code following the given code

Definition at line 246 of file ecb.cpp.

+ Here is the call graph for this function: