#include <Naming_Service_Container.h>
Public Member Functions | |
ACE_Unbounded_List_Iterator (ACE_Unbounded_List< T > &s, int end=0) | |
int | next (T *&next_item) |
int | advance (void) |
int | first (void) |
int | done (void) const |
Returns 1 when all items have been seen, else 0. | |
void | dump (void) const |
Dump the state of an object. | |
ACE_Unbounded_List_Iterator< T > | operator++ (int) |
Postfix advance. | |
ACE_Unbounded_List_Iterator< T > & | operator++ (void) |
Prefix advance. | |
T & | operator * (void) |
Returns a reference to the interal element is pointing to. | |
bool | operator== (const ACE_Unbounded_List_Iterator< T > &) const |
Check if two iterators point to the same position. | |
bool | operator!= (const ACE_Unbounded_List_Iterator< T > &) const |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. | |
Private Attributes | |
ACE_NS_Node< T > * | current_ |
Pointer to the current node in the iteration. | |
ACE_Unbounded_List< T > * | set_ |
Pointer to the set we're iterating over. |
Definition at line 76 of file Naming_Service_Container.h.
|
Definition at line 276 of file Naming_Service_Container.cpp.
|
|
Move forward by one element in the List. Returns 0 when all the items in the List have been seen, else 1. Definition at line 284 of file Naming_Service_Container.cpp. Referenced by ACE_Unbounded_List< T >::dump(), and ACE_Unbounded_List_Iterator< T >::operator++().
|
|
Returns 1 when all items have been seen, else 0.
Definition at line 300 of file Naming_Service_Container.cpp. References ACE_TRACE.
|
|
Dump the state of an object.
Definition at line 270 of file Naming_Service_Container.cpp.
00271 {
00272 // ACE_TRACE ("ACE_Unbounded_List_Iterator<T>::dump");
00273 }
|
|
Move to the first element in the List. Returns 0 if the List is empty, else 1. Definition at line 292 of file Naming_Service_Container.cpp.
|
|
Pass back the that hasn't been seen in the List. Returns 0 when all items have been seen, else 1. Definition at line 308 of file Naming_Service_Container.cpp. Referenced by ACE_Unbounded_List< T >::dump(), and ACE_Unbounded_List_Iterator< T >::operator *().
|
|
Returns a reference to the interal element is pointing to.
Definition at line 344 of file Naming_Service_Container.cpp. References ACE_ASSERT, and ACE_Unbounded_List_Iterator< T >::next().
00345 { 00346 //ACE_TRACE ("ACE_Unbounded_List_Iterator<T>::operator*"); 00347 T *retv = 0; 00348 00349 int result = this->next (retv); 00350 ACE_ASSERT (result != 0); 00351 ACE_UNUSED_ARG (result); 00352 00353 return *retv; 00354 } |
|
Definition at line 364 of file Naming_Service_Container.cpp. References ACE_Unbounded_List_Iterator< T >::current_, and ACE_Unbounded_List_Iterator< T >::set_.
|
|
Prefix advance.
Definition at line 333 of file Naming_Service_Container.cpp. References ACE_Unbounded_List_Iterator< T >::advance().
00334 { 00335 // ACE_TRACE ("ACE_Unbounded_List_Iterator<T>::operator++ (void)"); 00336 00337 // prefix operator 00338 00339 this->advance (); 00340 return *this; 00341 } |
|
Postfix advance.
Definition at line 321 of file Naming_Service_Container.cpp. References ACE_Unbounded_List_Iterator< T >::advance().
00322 { 00323 //ACE_TRACE ("ACE_Unbounded_List_Iterator<T>::operator++ (int)"); 00324 ACE_Unbounded_List_Iterator<T> retv (*this); 00325 00326 // postfix operator 00327 00328 this->advance (); 00329 return retv; 00330 } |
|
Check if two iterators point to the same position.
Definition at line 357 of file Naming_Service_Container.cpp. References ACE_Unbounded_List_Iterator< T >::current_, and ACE_Unbounded_List_Iterator< T >::set_.
|
|
Declare the dynamic allocation hooks.
Definition at line 118 of file Naming_Service_Container.h. |
|
Pointer to the current node in the iteration.
Definition at line 123 of file Naming_Service_Container.h. Referenced by ACE_Unbounded_List_Iterator< T >::operator!=(), and ACE_Unbounded_List_Iterator< T >::operator==(). |
|
Pointer to the set we're iterating over.
Definition at line 126 of file Naming_Service_Container.h. Referenced by ACE_Unbounded_List_Iterator< T >::operator!=(), and ACE_Unbounded_List_Iterator< T >::operator==(). |