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 | 2673941ccda8b8530513732ce9a5bfffe8e8ae45 (patch) | |
tree | fede1668935d2b7eb674eea741c54d6f2dd13743 /ace/Service_Repository.cpp | |
parent | f7ec296db4d3a90e5535c5b956ba9f3b63ef79b9 (diff) | |
download | ATCD-2673941ccda8b8530513732ce9a5bfffe8e8ae45.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_; } |