Public Member Functions | Protected Attributes | Friends

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
EventIteratoroperator++ ()
EventIterator operator++ (int)
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 282 of file model.h.


Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 292 of file model.h.

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

Definition at line 293 of file model.h.

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

Definition at line 291 of file model.h.

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

Definition at line 444 of file calendar.cpp.

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

Definition at line 303 of file model.h.

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

Definition at line 305 of file model.h.

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

Definition at line 457 of file calendar.cpp.


Friends And Related Function Documentation

friend class Calendar::Bucket [friend]

Definition at line 284 of file model.h.


Member Data Documentation

Definition at line 287 of file model.h.

Definition at line 288 of file model.h.

Definition at line 289 of file model.h.

Definition at line 286 of file model.h.


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