An iterator class to go through all dates where the calendar value changes. More...
#include <model.h>
Public Member Functions | |
EventIterator (const Calendar *c, Date d=Date::infinitePast, bool forward=true) | |
const Bucket * | getBucket () const |
const Calendar * | getCalendar () const |
const Date & | getDate () const |
EventIterator & | operator++ () |
EventIterator | operator++ (int) |
EventIterator | operator-- (int) |
EventIterator & | operator-- () |
Protected Attributes | |
const Bucket * | curBucket |
Date | curDate |
double | curPriority |
const Calendar * | theCalendar |
Friends | |
class | Calendar::Bucket |
An iterator class to go through all dates where the calendar value changes.
Definition at line 282 of file model.h.
frepple::Calendar::EventIterator::EventIterator | ( | const Calendar * | c, | |
Date | d = Date::infinitePast , |
|||
bool | forward = true | |||
) | [inline] |
Reimplemented in frepple::CalendarValue< T >::EventIterator, and frepple::CalendarPointer< T >::EventIterator.
const Bucket* frepple::Calendar::EventIterator::getBucket | ( | ) | const [inline] |
const Calendar* frepple::Calendar::EventIterator::getCalendar | ( | ) | const [inline] |
const Date& frepple::Calendar::EventIterator::getDate | ( | ) | const [inline] |
Calendar::EventIterator & frepple::Calendar::EventIterator::operator++ | ( | ) |
Definition at line 444 of file calendar.cpp.
EventIterator frepple::Calendar::EventIterator::operator++ | ( | int | ) | [inline] |
EventIterator frepple::Calendar::EventIterator::operator-- | ( | int | ) | [inline] |
Calendar::EventIterator & frepple::Calendar::EventIterator::operator-- | ( | ) |
Definition at line 457 of file calendar.cpp.
friend class Calendar::Bucket [friend] |
const Bucket* frepple::Calendar::EventIterator::curBucket [protected] |
Date frepple::Calendar::EventIterator::curDate [protected] |
double frepple::Calendar::EventIterator::curPriority [protected] |
const Calendar* frepple::Calendar::EventIterator::theCalendar [protected] |