schedule_iterator Class Reference

< the schedule_iterator allows the schedule to be traversed externally. More...

#include <scheduler.h>

Collaboration diagram for schedule_iterator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ~schedule_iterator ()
 closes down iterator (and removes writer on list).
void next ()
 go to next item.
void previous ()
 go to previous item.
schedulableaccess ()
 access the current element.
bool is_head ()
 is schedule_iterator at the head?
bool is_tail ()
 is schedule_iterator at the tail?
void jump_head ()
 set the schedule_iterator to the head.
void jump_tail ()
 set the schedule_iterator to the tail.

Friends

class scheduler

Detailed Description

< the schedule_iterator allows the schedule to be traversed externally.

Definition at line 263 of file scheduler.h.


Constructor & Destructor Documentation

schedule_iterator::~schedule_iterator (  ) 

closes down iterator (and removes writer on list).

NOTE: DO NOT CALL THIS YOURSELF. it must be public for visibility, but it is not intended for normal users of the scheduler object.

Definition at line 88 of file scheduler.cpp.

References NIL.


Member Function Documentation

void schedule_iterator::next (  ) 

go to next item.

Definition at line 90 of file scheduler.cpp.

References nodes::safe_list_write_iterator::next().

Referenced by scheduler::items_scheduled().

void schedule_iterator::previous (  ) 

go to previous item.

Definition at line 92 of file scheduler.cpp.

References nodes::safe_list_write_iterator::previous().

schedulable * schedule_iterator::access (  ) 

access the current element.

Definition at line 94 of file scheduler.cpp.

References nodes::safe_list_write_iterator::access().

Referenced by scheduler::items_scheduled(), scheduler::mark_dead(), and scheduler::zap().

bool schedule_iterator::is_head (  ) 

is schedule_iterator at the head?

Definition at line 97 of file scheduler.cpp.

References nodes::safe_list_write_iterator::is_head().

bool schedule_iterator::is_tail (  ) 

is schedule_iterator at the tail?

Definition at line 99 of file scheduler.cpp.

References nodes::safe_list_write_iterator::is_tail().

Referenced by scheduler::items_scheduled().

void schedule_iterator::jump_head (  ) 

set the schedule_iterator to the head.

Definition at line 101 of file scheduler.cpp.

References nodes::safe_list_write_iterator::jump_head().

Referenced by scheduler::items_scheduled().

void schedule_iterator::jump_tail (  ) 

set the schedule_iterator to the tail.

Definition at line 103 of file scheduler.cpp.

References nodes::safe_list_write_iterator::jump_tail().


Friends And Related Function Documentation

friend class scheduler [friend]

Definition at line 283 of file scheduler.h.


The documentation for this class was generated from the following files:
Generated on Fri Nov 28 04:30:58 2008 for HOOPLE Libraries by  doxygen 1.5.1