#include <Unbounded_Set.h>
Public Member Functions | |
| ACE_Unbounded_Set_Const_Iterator (const ACE_Unbounded_Set< T > &s, bool end=false) | |
| 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_Set_Const_Iterator< T > | operator++ (int) |
| Postfix advance. | |
| ACE_Unbounded_Set_Const_Iterator< T > & | operator++ (void) |
| Prefix advance. | |
| T & | operator * (void) |
Returns a reference to the internal element this is pointing to. | |
| bool | operator== (const ACE_Unbounded_Set_Const_Iterator< T > &) const |
| Check if two iterators point to the same position. | |
| bool | operator!= (const ACE_Unbounded_Set_Const_Iterator< T > &) const |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. | |
Private Attributes | |
| ACE_Node< T > * | current_ |
| Pointer to the current node in the iteration. | |
| const ACE_Unbounded_Set< T > * | set_ |
| Pointer to the set we're iterating over. | |
Definition at line 93 of file Unbounded_Set.h.
|
||||||||||||||||
|
Definition at line 380 of file Unbounded_Set.cpp.
|
|
||||||||||
|
Move forward by one element in the set. Returns 0 when all the items in the set have been seen, else 1. Definition at line 390 of file Unbounded_Set.cpp. Referenced by ACE_Unbounded_Set_Const_Iterator< T >::operator++().
|
|
||||||||||
|
Returns 1 when all items have been seen, else 0.
Definition at line 406 of file Unbounded_Set.cpp. References ACE_TRACE.
|
|
||||||||||
|
Dump the state of an object.
Definition at line 372 of file Unbounded_Set.cpp.
00373 {
00374 #if defined (ACE_HAS_DUMP)
00375 // ACE_TRACE ("ACE_Unbounded_Set_Const_Iterator<T>::dump");
00376 #endif /* ACE_HAS_DUMP */
00377 }
|
|
||||||||||
|
Move to the first element in the set. Returns 0 if the set is empty, else 1. Definition at line 398 of file Unbounded_Set.cpp.
|
|
||||||||||
|
Pass back the next_item that hasn't been seen in the Set.
Definition at line 414 of file Unbounded_Set.cpp. Referenced by ACE_Unbounded_Set_Const_Iterator< T >::operator *().
|
|
||||||||||
|
Returns a reference to the internal element
Definition at line 450 of file Unbounded_Set.cpp. References ACE_ASSERT, and ACE_Unbounded_Set_Const_Iterator< T >::next().
00451 {
00452 //ACE_TRACE ("ACE_Unbounded_Set_Const_Iterator<T>::operator*");
00453 T *retv = 0;
00454
00455 int const result = this->next (retv);
00456 ACE_ASSERT (result != 0);
00457 ACE_UNUSED_ARG (result);
00458
00459 return *retv;
00460 }
|
|
||||||||||
|
Definition at line 470 of file Unbounded_Set.cpp. References ACE_Unbounded_Set_Const_Iterator< T >::current_, and ACE_Unbounded_Set_Const_Iterator< T >::set_.
|
|
||||||||||
|
Prefix advance.
Definition at line 439 of file Unbounded_Set.cpp. References ACE_Unbounded_Set_Const_Iterator< T >::advance().
00440 {
00441 // ACE_TRACE ("ACE_Unbounded_Set_Const_Iterator<T>::operator++ (void)");
00442
00443 // prefix operator
00444
00445 this->advance ();
00446 return *this;
00447 }
|
|
||||||||||
|
Postfix advance.
Definition at line 427 of file Unbounded_Set.cpp. References ACE_Unbounded_Set_Const_Iterator< T >::advance().
00428 {
00429 //ACE_TRACE ("ACE_Unbounded_Set_Const_Iterator<T>::operator++ (int)");
00430 ACE_Unbounded_Set_Const_Iterator<T> retv (*this);
00431
00432 // postfix operator
00433
00434 this->advance ();
00435 return retv;
00436 }
|
|
||||||||||
|
Check if two iterators point to the same position.
Definition at line 463 of file Unbounded_Set.cpp. References ACE_Unbounded_Set_Const_Iterator< T >::current_, and ACE_Unbounded_Set_Const_Iterator< T >::set_.
|
|
|||||
|
Declare the dynamic allocation hooks.
Definition at line 136 of file Unbounded_Set.h. |
|
|||||
|
Pointer to the current node in the iteration.
Definition at line 141 of file Unbounded_Set.h. Referenced by ACE_Unbounded_Set_Const_Iterator< T >::operator!=(), and ACE_Unbounded_Set_Const_Iterator< T >::operator==(). |
|
|||||
|
Pointer to the set we're iterating over.
Definition at line 144 of file Unbounded_Set.h. Referenced by ACE_Unbounded_Set_Const_Iterator< T >::operator!=(), and ACE_Unbounded_Set_Const_Iterator< T >::operator==(). |
1.3.6