#include <Unbounded_Set.h>
Collaboration diagram for ACE_Unbounded_Set_Const_Iterator:

Public Methods | |
| ACE_Unbounded_Set_Const_Iterator (const ACE_Unbounded_Set< T > &s, int end=0) | |
| int | next (T *&next_item) |
| Pass back the <next_item> that hasn't been seen in the Set. Returns 0 when all items have been seen, else 1. More... | |
| int | advance (void) |
| Move forward by one element in the set. Returns 0 when all the items in the set have been seen, else 1. More... | |
| int | first (void) |
| Move to the first element in the set. Returns 0 if the set is empty, else 1. More... | |
| int | done (void) const |
| Returns 1 when all items have been seen, else 0. More... | |
| void | dump (void) const |
| Dump the state of an object. More... | |
| ACE_Unbounded_Set_Const_Iterator< T > | operator++ (int) |
| Postfix advance. More... | |
| ACE_Unbounded_Set_Const_Iterator< T > & | operator++ (void) |
| Prefix advance. More... | |
| T & | operator * (void) |
| Returns a reference to the internal element <this> is pointing to. More... | |
| int | operator== (const ACE_Unbounded_Set_Const_Iterator< T > &) const |
| Check if two iterators point to the same position. More... | |
| int | operator!= (const ACE_Unbounded_Set_Const_Iterator< T > &) const |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. More... | |
Private Attributes | |
| ACE_Node< T > * | current_ |
| Pointer to the current node in the iteration. More... | |
| const ACE_Unbounded_Set< T > * | set_ |
| Pointer to the set we're iterating over. More... | |
Definition at line 90 of file Unbounded_Set.h.
|
||||||||||||||||
|
Definition at line 363 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 371 of file Unbounded_Set.cpp. References current_, and set_. Referenced by operator++.
|
|
||||||||||
|
Returns 1 when all items have been seen, else 0.
Definition at line 387 of file Unbounded_Set.cpp. References ACE_TRACE, current_, and set_.
|
|
||||||||||
|
Dump the state of an object.
Definition at line 357 of file Unbounded_Set.cpp.
00358 {
00359 // ACE_TRACE ("ACE_Unbounded_Set_Const_Iterator<T>::dump");
00360 }
|
|
||||||||||
|
Move to the first element in the set. Returns 0 if the set is empty, else 1.
Definition at line 379 of file Unbounded_Set.cpp. References current_, and set_.
|
|
||||||||||
|
Pass back the <next_item> that hasn't been seen in the Set. Returns 0 when all items have been seen, else 1.
Definition at line 395 of file Unbounded_Set.cpp. References current_, and set_. Referenced by operator *.
|
|
||||||||||
|
Returns a reference to the internal element <this> is pointing to.
Definition at line 431 of file Unbounded_Set.cpp. References ACE_ASSERT, and next.
00432 {
00433 //ACE_TRACE ("ACE_Unbounded_Set_Const_Iterator<T>::operator*");
00434 T *retv = 0;
00435
00436 int result = this->next (retv);
00437 ACE_ASSERT (result != 0);
00438 ACE_UNUSED_ARG (result);
00439
00440 return *retv;
00441 }
|
|
||||||||||
|
|
|
||||||||||
|
Prefix advance.
Definition at line 420 of file Unbounded_Set.cpp. References advance.
00421 {
00422 // ACE_TRACE ("ACE_Unbounded_Set_Const_Iterator<T>::operator++ (void)");
00423
00424 // prefix operator
00425
00426 this->advance ();
00427 return *this;
00428 }
|
|
||||||||||
|
Postfix advance.
Definition at line 408 of file Unbounded_Set.cpp. References advance.
00409 {
00410 //ACE_TRACE ("ACE_Unbounded_Set_Const_Iterator<T>::operator++ (int)");
00411 ACE_Unbounded_Set_Const_Iterator<T> retv (*this);
00412
00413 // postfix operator
00414
00415 this->advance ();
00416 return retv;
00417 }
|
|
||||||||||
|
Check if two iterators point to the same position.
|
|
|||||
|
Declare the dynamic allocation hooks.
Definition at line 132 of file Unbounded_Set.h. |
|
|||||
|
Pointer to the current node in the iteration.
Definition at line 137 of file Unbounded_Set.h. |
|
|||||
|
Pointer to the set we're iterating over.
Definition at line 140 of file Unbounded_Set.h. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002