#include <Containers_T.h>
Inheritance diagram for ACE_Double_Linked_List_Iterator< T >:


Public Member Functions | |
| ACE_Double_Linked_List_Iterator (const ACE_Double_Linked_List< T > &) | |
| void | reset (ACE_Double_Linked_List< T > &) | 
| int | first (void) | 
| int | advance (void) | 
| T * | advance_and_remove (int dont_remove) | 
| ACE_Double_Linked_List_Iterator< T > &  | operator++ (void) | 
| Prefix advance.   | |
| ACE_Double_Linked_List_Iterator< T >  | operator++ (int) | 
| Postfix advance.   | |
| ACE_Double_Linked_List_Iterator< T > &  | operator-- (void) | 
| Prefix reverse.   | |
| ACE_Double_Linked_List_Iterator< T >  | operator-- (int) | 
| Postfix reverse.   | |
| void | dump (void) const | 
| Dump the state of an object.   | |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks.   | |
Iterate thru the double-linked list. This class provides an interface that let users access the internal element addresses directly. Notice {class T} must declare ACE_Double_Linked_List<T>, ACE_Double_Linked_List_Iterator_Base <T> and ACE_Double_Linked_List_Iterator as friend classes and class T should also have data members T* next_ and T* prev_.
Definition at line 654 of file Containers_T.h.
      
  | 
  ||||||||||
| 
 
 Definition at line 454 of file Containers_T.cpp. References ACE_Double_Linked_List< T >::head_. 
  | 
  
      
  | 
  ||||||||||
      
  | 
  ||||||||||
| 
 Advance the iterator while removing the original item from the list. Return a pointer points to the original (removed) item. If {dont_remove} equals 0, this function behaves like {advance} but return 0 (NULL) instead. Definition at line 484 of file Containers_T.cpp. References ACE_Double_Linked_List_Iterator_Base< T >::do_advance(), ACE_Double_Linked_List_Iterator_Base< T >::next(), and ACE_Double_Linked_List< T >::remove(). Referenced by ACE_Thread_Manager::join(), ACE_Thread_Manager::wait_grp(), and ACE_Thread_Manager::wait_task(). 
 00485 {
00486   T* item = 0;
00487   if (dont_remove)
00488     this->do_advance ();
00489   else
00490     {
00491       item = this->next ();
00492       this->do_advance ();
00493       // It seems dangerous to remove nodes in an iterator, but so it goes...
00494       ACE_Double_Linked_List<T> *dllist =
00495         const_cast<ACE_Double_Linked_List<T> *> (this->dllist_);
00496       dllist->remove (item);
00497     }
00498   return item;
00499 }
 | 
  
      
  | 
  ||||||||||
| 
 Dump the state of an object. 
 Reimplemented in ACE_DLList_Iterator< T >. Definition at line 502 of file Containers_T.cpp. References ACE_Double_Linked_List_Iterator_Base< T >::dump_i(). 
 00503 {
00504 #if defined (ACE_HAS_DUMP)
00505   this->dump_i ();
00506 #endif /* ACE_HAS_DUMP */
00507 }
 | 
  
      
  | 
  ||||||||||
| 
 Move to the first element in the list. Returns 0 if the list is empty, else 1. Definition at line 472 of file Containers_T.cpp. References ACE_Double_Linked_List_Iterator_Base< T >::go_head(). 
 00473 {
00474   return this->go_head ();
00475 }
 | 
  
      
  | 
  ||||||||||
| 
 Postfix advance. 
 Definition at line 524 of file Containers_T.cpp. References ACE_Double_Linked_List_Iterator_Base< T >::do_advance(). 
 00525 {
00526   ACE_Double_Linked_List_Iterator<T> retv (*this);
00527   this->do_advance ();
00528   return retv;
00529 }
 | 
  
      
  | 
  ||||||||||
| 
 Prefix advance. 
 Definition at line 513 of file Containers_T.cpp. References ACE_Double_Linked_List_Iterator_Base< T >::do_advance(). 
 00514 {
00515   this->do_advance ();
00516   return *this;
00517 }
 | 
  
      
  | 
  ||||||||||
| 
 Postfix reverse. 
 Definition at line 547 of file Containers_T.cpp. References ACE_Double_Linked_List_Iterator_Base< T >::do_retreat(). 
 00548 {
00549   ACE_Double_Linked_List_Iterator<T> retv (*this);
00550   this->do_retreat ();
00551   return retv;
00552 }
 | 
  
      
  | 
  ||||||||||
| 
 Prefix reverse. 
 Definition at line 536 of file Containers_T.cpp. References ACE_Double_Linked_List_Iterator_Base< T >::do_retreat(). 
 00537 {
00538   this->do_retreat ();
00539   return *this;
00540 }
 | 
  
      
  | 
  ||||||||||
| 
 Retasks the iterator to iterate over a new Double_Linked_List. This allows clients to reuse an iterator without incurring the constructor overhead. If you do use this, be aware that if there are more than one reference to this iterator, the other "clients" may be very bothered when their iterator changes. @ Here be dragons. Comments? Reimplemented from ACE_Double_Linked_List_Iterator_Base< T >. Definition at line 463 of file Containers_T.cpp. References ACE_Double_Linked_List< T >::head_. 
  | 
  
      
  | 
  |||||
| 
 Declare the dynamic allocation hooks. 
 Reimplemented from ACE_Double_Linked_List_Iterator_Base< T >. Definition at line 705 of file Containers_T.h.  | 
  
 
1.3.6