frepple::Calendar::EventIterator Class Reference

An iterator class to go through all dates where the calendar value changes. More...

#include <model.h>

Inheritance diagram for frepple::Calendar::EventIterator:

List of all members.

Public Member Functions

 EventIterator (const Calendar *c=NULL, Date d=Date::infinitePast, bool forward=true)
const BucketgetBucket () const
const CalendargetCalendar () const
const DategetDate () const
EventIteratoroperator++ ()
EventIterator operator++ (int)
EventIteratoroperator-- ()
EventIterator operator-- (int)

Protected Attributes

const BucketcurBucket
Date curDate
int curPriority
const BucketlastBucket
int lastPriority
const CalendartheCalendar

Friends

class Calendar::Bucket

Detailed Description

An iterator class to go through all dates where the calendar value changes.

Definition at line 345 of file model.h.


Constructor & Destructor Documentation

frepple::Calendar::EventIterator::EventIterator ( const Calendar c = NULL,
Date  d = Date::infinitePast,
bool  forward = true 
) [inline]

Reimplemented in frepple::CalendarDouble::EventIterator.

Definition at line 359 of file model.h.


Member Function Documentation

const Bucket* frepple::Calendar::EventIterator::getBucket ( ) const [inline]

Definition at line 357 of file model.h.

const Calendar* frepple::Calendar::EventIterator::getCalendar ( ) const [inline]

Definition at line 358 of file model.h.

const Date& frepple::Calendar::EventIterator::getDate ( ) const [inline]

Definition at line 356 of file model.h.

Calendar::EventIterator & frepple::Calendar::EventIterator::operator++ ( )

Definition at line 544 of file calendar.cpp.

EventIterator frepple::Calendar::EventIterator::operator++ ( int  ) [inline]

Definition at line 367 of file model.h.

Calendar::EventIterator & frepple::Calendar::EventIterator::operator-- ( )

Definition at line 562 of file calendar.cpp.

EventIterator frepple::Calendar::EventIterator::operator-- ( int  ) [inline]

Definition at line 371 of file model.h.


Friends And Related Function Documentation

friend class Calendar::Bucket [friend]

Definition at line 347 of file model.h.


Member Data Documentation

Definition at line 350 of file model.h.

Definition at line 352 of file model.h.

Definition at line 353 of file model.h.

Definition at line 351 of file model.h.

Definition at line 354 of file model.h.

Definition at line 349 of file model.h.


The documentation for this class was generated from the following files:

Documentation generated for frePPLe by  doxygen