#include <Array_Base.h>
Collaboration diagram for ACE_Array_Iterator:

Public Methods | |
| ACE_Array_Iterator (ACE_Array_Base< T > &) | |
| int | next (T *&next_item) |
| Pass back the <next_item> that hasn't been seen in the Array. Returns 0 when all items have been seen, else 1. More... | |
| int | advance (void) |
| Move forward by one element in the Array. Returns 0 when all the items in the Array have been seen, 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... | |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. More... | |
Private Attributes | |
| size_t | current_ |
| Pointer to the current item in the iteration. More... | |
| ACE_Array_Base< T > & | array_ |
| Pointer to the Array we're iterating over. More... | |
This iterator is safe in the face of array element deletions. But it is NOT safe if the array is resized (via the ACE_Array assignment operator) during iteration. That would be very odd, and dangerous.
Definition at line 163 of file Array_Base.h.
|
||||||||||
|
Definition at line 54 of file Array_Base.inl.
|
|
||||||||||
|
Move forward by one element in the Array. Returns 0 when all the items in the Array have been seen, else 1.
Definition at line 62 of file Array_Base.inl. References array_, and current_.
|
|
||||||||||
|
Returns 1 when all items have been seen, else 0.
Definition at line 79 of file Array_Base.inl. References ACE_TRACE, array_, and current_. Referenced by next.
|
|
||||||||||
|
Dump the state of an object.
Definition at line 48 of file Array_Base.inl.
00049 {
00050 // ACE_TRACE ("ACE_Array_Iterator<T>::dump");
00051 }
|
|
||||||||||
|
Pass back the <next_item> that hasn't been seen in the Array. Returns 0 when all items have been seen, else 1.
Definition at line 188 of file Array_Base.cpp. References array_, current_, and done.
|
|
|||||
|
Declare the dynamic allocation hooks.
Definition at line 186 of file Array_Base.h. |
|
|||||
|
Pointer to the Array we're iterating over.
Definition at line 193 of file Array_Base.h. |
|
|||||
|
Pointer to the current item in the iteration.
Definition at line 190 of file Array_Base.h. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002