QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Distribution over a number of dates. More...
#include <timebasket.hpp>
Public Member Functions | |
TimeBasket ()=default | |
TimeBasket (const std::vector< Date > &dates, const std::vector< Real > &values) | |
Algebra | |
TimeBasket & | operator+= (const TimeBasket &other) |
TimeBasket & | operator-= (const TimeBasket &other) |
Other methods | |
TimeBasket | rebin (const std::vector< Date > &buckets) const |
redistribute the entries over the given dates More... | |
Private Types | |
typedef std::map< Date, Real > | super |
Map interface | |
typedef super::iterator | iterator |
typedef super::const_iterator | const_iterator |
typedef super::reverse_iterator | reverse_iterator |
typedef super::const_reverse_iterator | const_reverse_iterator |
bool | hasDate (const Date &) const |
membership More... | |
Distribution over a number of dates.
Definition at line 36 of file timebasket.hpp.
Definition at line 38 of file timebasket.hpp.
typedef super::iterator iterator |
Definition at line 50 of file timebasket.hpp.
typedef super::const_iterator const_iterator |
Definition at line 51 of file timebasket.hpp.
typedef super::reverse_iterator reverse_iterator |
Definition at line 52 of file timebasket.hpp.
typedef super::const_reverse_iterator const_reverse_iterator |
Definition at line 53 of file timebasket.hpp.
|
default |
TimeBasket | ( | const std::vector< Date > & | dates, |
const std::vector< Real > & | values | ||
) |
Definition at line 27 of file timebasket.cpp.
membership
Definition at line 76 of file timebasket.hpp.
TimeBasket & operator+= | ( | const TimeBasket & | other | ) |
Definition at line 81 of file timebasket.hpp.
TimeBasket & operator-= | ( | const TimeBasket & | other | ) |
Definition at line 88 of file timebasket.hpp.
TimeBasket rebin | ( | const std::vector< Date > & | buckets | ) | const |
redistribute the entries over the given dates
Definition at line 36 of file timebasket.cpp.