#include <Service_Repository.h>
Collaboration diagram for ACE_Service_Repository_Iterator:
Public Member Functions | |
ACE_Service_Repository_Iterator (ACE_Service_Repository &sr, int ignored_suspended=1) | |
Constructor initializes the iterator. | |
~ACE_Service_Repository_Iterator (void) | |
Destructor. | |
int | next (const ACE_Service_Type *&next_item) |
int | done (void) const |
Returns 1 when all items have been seen, else 0. | |
int | advance (void) |
void | dump (void) const |
Dump the state of an object. | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. | |
Private Member Functions | |
bool | valid (void) const |
ACE_Service_Repository_Iterator (const ACE_Service_Repository_Iterator &) | |
Private Attributes | |
ACE_Service_Repository & | svc_rep_ |
Reference to the Service Repository we are iterating over. | |
size_t | next_ |
Next index location that we haven't yet seen. | |
int | ignore_suspended_ |
Are we ignoring suspended services? |
Make sure not to delete entries as the iteration is going on since this class is not designed as a robust iterator.
Definition at line 225 of file Service_Repository.h.
|
Constructor initializes the iterator.
|
|
Destructor.
Definition at line 47 of file Service_Repository.inl.
00048 { 00049 } |
|
|
|
Move forward by one element in the repository. Returns 0 when all the items in the set have been seen, else 1. Referenced by ACE_Service_Manager::list_services(). |
|
Returns 1 when all items have been seen, else 0.
Definition at line 39 of file Service_Repository.inl. References ACE_TRACE, and ACE_Service_Repository::current_size_.
00040 { 00041 ACE_TRACE ("ACE_Service_Repository_Iterator::done"); 00042 00043 return this->next_ >= this->svc_rep_.current_size_; 00044 } |
|
Dump the state of an object.
|
|
Pass back the that hasn't been seen in the repository. Returns 0 when all items have been seen, else 1. Referenced by ACE_Service_Manager::list_services(). |
|
|
|
Declare the dynamic allocation hooks.
Definition at line 255 of file Service_Repository.h. |
|
Are we ignoring suspended services?
Definition at line 270 of file Service_Repository.h. |
|
Next index location that we haven't yet seen.
Definition at line 267 of file Service_Repository.h. |
|
Reference to the Service Repository we are iterating over.
Definition at line 264 of file Service_Repository.h. |