#include <Timer_List_T.h>
Inheritance diagram for ACE_Timer_List_Iterator_T:


Public Types | |
| typedef ACE_Timer_List_T< TYPE, FUNCTOR, ACE_LOCK > | List |
Public Methods | |
| ACE_Timer_List_Iterator_T (List &lst) | |
| Constructor. More... | |
| virtual | ~ACE_Timer_List_Iterator_T (void) |
| Destructor. More... | |
| virtual void | first (void) |
| Positions the iterator at the earliest node in the Timer Queue. More... | |
| virtual void | next (void) |
| Positions the iterator at the next node in the Timer Queue. More... | |
| virtual int | isdone (void) const |
| Returns true when there are no more nodes in the sequence. More... | |
| virtual ACE_Timer_Node_T< TYPE > * | item (void) |
| Returns the node at the current position in the sequence. More... | |
Protected Attributes | |
| List & | list_ |
| Pointer to the <ACE_Timer_List> that we are iterating over. More... | |
| ACE_Timer_Node_T< TYPE > * | current_node_ |
| Current position in the <ACE_Timer_List>. More... | |
This is a generic iterator that can be used to visit every node of a timer queue.
Definition at line 36 of file Timer_List_T.h.
|
|||||
|
Definition at line 40 of file Timer_List_T.h. |
|
||||||||||
|
Constructor.
Definition at line 18 of file Timer_List_T.cpp. References first.
|
|
||||||||||
|
Destructor.
Definition at line 25 of file Timer_List_T.cpp.
00026 {
00027 }
|
|
||||||||||
|
Positions the iterator at the earliest node in the Timer Queue.
Implements ACE_Timer_Queue_Iterator_T. Definition at line 32 of file Timer_List_T.cpp. References current_node_, ACE_Timer_List_T::get_first, and list_. Referenced by ACE_Timer_List_Iterator_T, and ACE_Timer_List_T::iter.
00033 {
00034 this->current_node_ = this->list_.get_first();
00035 }
|
|
||||||||||
|
Returns true when there are no more nodes in the sequence.
Implements ACE_Timer_Queue_Iterator_T. Definition at line 52 of file Timer_List_T.cpp. References current_node_.
00053 {
00054 return this->current_node_ == 0;
00055 }
|
|
||||||||||
|
Returns the node at the current position in the sequence.
Implements ACE_Timer_Queue_Iterator_T. Definition at line 60 of file Timer_List_T.cpp. References current_node_, and isdone.
00061 {
00062 if (! this->isdone())
00063 return this->current_node_;
00064 return 0;
00065 }
|
|
||||||||||
|
Positions the iterator at the next node in the Timer Queue.
Implements ACE_Timer_Queue_Iterator_T. Definition at line 40 of file Timer_List_T.cpp. References current_node_, ACE_Timer_List_T::head_, isdone, and list_.
00041 {
00042 // Make sure that if we are at the end, we don't wrap around
00043 if (! this->isdone())
00044 this->current_node_ = this->current_node_->get_next ();
00045 if (this->current_node_ == this->list_.head_)
00046 this->current_node_ = 0;
00047 }
|
|
|||||
|
Current position in the <ACE_Timer_List>.
Definition at line 64 of file Timer_List_T.h. |
|
|||||
|
Pointer to the <ACE_Timer_List> that we are iterating over.
Definition at line 61 of file Timer_List_T.h. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002