diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-05-04 22:05:57 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-05-04 22:05:57 +0000 |
commit | ab19ac45d182225dcc99bb26692fdc5c1a23b2c6 (patch) | |
tree | fede1668935d2b7eb674eea741c54d6f2dd13743 /ace/Service_Repository.cpp | |
parent | 9d603c20f7f8fe88de6493efbe0ecc42e3922f7d (diff) | |
download | ATCD-ab19ac45d182225dcc99bb26692fdc5c1a23b2c6.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Service_Repository.cpp')
-rw-r--r-- | ace/Service_Repository.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ace/Service_Repository.cpp b/ace/Service_Repository.cpp index 6500e28938b..c614b638dc0 100644 --- a/ace/Service_Repository.cpp +++ b/ace/Service_Repository.cpp @@ -260,6 +260,14 @@ ACE_Service_Repository_Iterator::next (const ACE_Service_Record *&sr) return 0; } +int +ACE_Service_Repository_Iterator::done (void) const +{ + ACE_TRACE ("ACE_Service_Repository_Iterator::done"); + + return this->next_ >= this->svc_rep_.current_size_; +} + // Advance the iterator by the proper amount. If we are ignoring // suspended entries and the current entry is suspended, then we must // skip over this entry. Otherwise, we must advance the NEXT index to @@ -275,5 +283,5 @@ ACE_Service_Repository_Iterator::advance (void) && this->svc_rep_.service_vector_[this->next_]->active () == 0; this->next_++) continue; - return this->next_; + return this->next_ < this->svc_rep_.current_size_; } |