#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 279 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 287 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 303 of file Naming_Service_Container.cpp. References ACE_TRACE.
|
|
Dump the state of an object.
Definition at line 273 of file Naming_Service_Container.cpp.
00274 {
00275 // ACE_TRACE ("ACE_Unbounded_List_Iterator<T>::dump");
00276 }
|
|
Move to the first element in the List. Returns 0 if the List is empty, else 1. Definition at line 295 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 311 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 347 of file Naming_Service_Container.cpp. References ACE_ASSERT, and ACE_Unbounded_List_Iterator< T >::next().
00348 { 00349 //ACE_TRACE ("ACE_Unbounded_List_Iterator<T>::operator*"); 00350 T *retv = 0; 00351 00352 int result = this->next (retv); 00353 ACE_ASSERT (result != 0); 00354 ACE_UNUSED_ARG (result); 00355 00356 return *retv; 00357 } |
|
Definition at line 367 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 336 of file Naming_Service_Container.cpp. References ACE_Unbounded_List_Iterator< T >::advance().
00337 { 00338 // ACE_TRACE ("ACE_Unbounded_List_Iterator<T>::operator++ (void)"); 00339 00340 // prefix operator 00341 00342 this->advance (); 00343 return *this; 00344 } |
|
Postfix advance.
Definition at line 324 of file Naming_Service_Container.cpp. References ACE_Unbounded_List_Iterator< T >::advance().
00325 { 00326 //ACE_TRACE ("ACE_Unbounded_List_Iterator<T>::operator++ (int)"); 00327 ACE_Unbounded_List_Iterator<T> retv (*this); 00328 00329 // postfix operator 00330 00331 this->advance (); 00332 return retv; 00333 } |
|
Check if two iterators point to the same position.
Definition at line 360 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==(). |