Key classes in namespace tom::calendars

class date : public boost::gregorian::date

Subclassed by tom::calendars::timestamp

Public Functions

inline date(boost::gregorian::greg_year_month_day d)
inline date(const boost::gregorian::date &d)
inline date(const date &d)
inline date(date_int_type d)
date(greg_year y, greg_month m, greg_day d)
inline date_int_type days() const
class calendar

class to handle converting Date(s) to integral numbers representing an interval measured at a given frequency and to convert those itegral numbers back to Date(s), and DatePeriod(s)…

Subclassed by tom::calendars::calendar_impl< CONVERTER >

Public Functions

inline virtual ~calendar()
virtual date_period get_date_period(const date&) const = 0
virtual date_period get_date_period(date_int_type) const = 0
virtual const date &get_first_date() const = 0
virtual const char *name() const = 0
virtual bool operator!=(const calendar &rhs) const = 0
virtual date_int_type operator()(const date&) const = 0
virtual date operator()(date_int_type) const = 0
virtual bool operator==(const calendar &rhs) const = 0
class date_period_converter

Public Functions

inline date_period_converter(calendar &from, calendar &to)
date_int_type next(date_int_type start)

return the next date_int_type for the from calendar that is NOT included in the period for start converted to the ‘to’ calendar

inline date_int_type target(date_int_type start)

this returns the date_int_type expressed in calendar ‘from’ converted to the ‘to’ calendar

class aggregator

Subclassed by tom::calendars::aggregate_avg, tom::calendars::aggregate_begin, tom::calendars::aggregate_end, tom::calendars::aggregate_max, tom::calendars::aggregate_min, tom::calendars::aggregate_sum

Public Functions

inline virtual ~aggregator()
virtual const tom::observation &operator()(const date_period &d, const tom::collections::time_series &ts) const = 0