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 341 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 355 of file model.h.


Member Function Documentation

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

Definition at line 353 of file model.h.

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

Definition at line 354 of file model.h.

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

Definition at line 352 of file model.h.

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

Definition at line 540 of file calendar.cpp.

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

Definition at line 363 of file model.h.

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

Definition at line 558 of file calendar.cpp.

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

Definition at line 367 of file model.h.


Friends And Related Function Documentation

friend class Calendar::Bucket
friend

Definition at line 343 of file model.h.


Member Data Documentation

const Bucket* frepple::Calendar::EventIterator::curBucket
protected

Definition at line 346 of file model.h.

Date frepple::Calendar::EventIterator::curDate
protected

Definition at line 348 of file model.h.

int frepple::Calendar::EventIterator::curPriority
protected

Definition at line 349 of file model.h.

const Bucket* frepple::Calendar::EventIterator::lastBucket
protected

Definition at line 347 of file model.h.

int frepple::Calendar::EventIterator::lastPriority
protected

Definition at line 350 of file model.h.

const Calendar* frepple::Calendar::EventIterator::theCalendar
protected

Definition at line 345 of file model.h.


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