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:
frepple::CalendarPointer< T >::EventIterator frepple::CalendarValue< T >::EventIterator

List of all members.

Public Member Functions

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

Protected Attributes

const BucketcurBucket
Date curDate
double curPriority
const CalendartheCalendar

Friends

class Calendar::Bucket

Detailed Description

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

Definition at line 271 of file model.h.


Constructor & Destructor Documentation

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

Definition at line 283 of file model.h.


Member Function Documentation

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

Definition at line 281 of file model.h.

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

Definition at line 282 of file model.h.

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

Definition at line 280 of file model.h.

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

Definition at line 292 of file model.h.

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

Definition at line 326 of file calendar.cpp.

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

Definition at line 294 of file model.h.

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

Definition at line 339 of file calendar.cpp.


Friends And Related Function Documentation

friend class Calendar::Bucket [friend]

Definition at line 273 of file model.h.


Member Data Documentation

Definition at line 276 of file model.h.

Definition at line 277 of file model.h.

Definition at line 278 of file model.h.

Definition at line 275 of file model.h.


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

Generated on 25 Feb 2010 for frePPLe by  doxygen 1.6.1