ACE 8.0.1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
ACE_Service_Repository_Iterator Class Reference

Iterate through the ACE_Service_Repository. More...

#include <Service_Repository.h>

Collaboration diagram for ACE_Service_Repository_Iterator:
Collaboration graph
[legend]

Public Member Functions

 ACE_Service_Repository_Iterator (ACE_Service_Repository &sr, bool ignored_suspended=true)
 Constructor initializes the iterator.
 
 ~ACE_Service_Repository_Iterator ()
 Destructor.
 
int next (const ACE_Service_Type *&next_item)
 
int done () const
 Returns 1 when all items have been seen, else 0.
 
int advance ()
 
void dump () const
 Dump the state of an object.
 

Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.
 

Private Member Functions

bool valid () const
 
 ACE_Service_Repository_Iterator (const ACE_Service_Repository_Iterator &)
 

Private Attributes

ACE_Service_Repositorysvc_rep_
 Reference to the Service Repository we are iterating over.
 
size_t next_
 Next index location that we haven't yet seen.
 
bool const ignore_suspended_
 Are we ignoring suspended services?
 

Detailed Description

Iterate through the ACE_Service_Repository.

Make sure not to delete entries as the iteration is going on since this class is not designed as a robust iterator.

Constructor & Destructor Documentation

◆ ACE_Service_Repository_Iterator() [1/2]

ACE_Service_Repository_Iterator::ACE_Service_Repository_Iterator ( ACE_Service_Repository & sr,
bool ignored_suspended = true )

Constructor initializes the iterator.

◆ ~ACE_Service_Repository_Iterator()

ACE_Service_Repository_Iterator::~ACE_Service_Repository_Iterator ( )
inline

Destructor.

◆ ACE_Service_Repository_Iterator() [2/2]

ACE_Service_Repository_Iterator::ACE_Service_Repository_Iterator ( const ACE_Service_Repository_Iterator & )
private

Member Function Documentation

◆ advance()

int ACE_Service_Repository_Iterator::advance ( )

Move forward by one element in the repository. Returns 0 when all the items in the set have been seen, else 1.

◆ done()

int ACE_Service_Repository_Iterator::done ( ) const
inline

Returns 1 when all items have been seen, else 0.

◆ dump()

void ACE_Service_Repository_Iterator::dump ( ) const

Dump the state of an object.

◆ next()

int ACE_Service_Repository_Iterator::next ( const ACE_Service_Type *& next_item)

Pass back the next_item that hasn't been seen in the repository. Returns 0 when all items have been seen, else 1.

◆ valid()

bool ACE_Service_Repository_Iterator::valid ( ) const
private

Member Data Documentation

◆ ACE_ALLOC_HOOK_DECLARE

ACE_Service_Repository_Iterator::ACE_ALLOC_HOOK_DECLARE

Declare the dynamic allocation hooks.

◆ ignore_suspended_

bool const ACE_Service_Repository_Iterator::ignore_suspended_
private

Are we ignoring suspended services?

◆ next_

size_t ACE_Service_Repository_Iterator::next_
private

Next index location that we haven't yet seen.

◆ svc_rep_

ACE_Service_Repository& ACE_Service_Repository_Iterator::svc_rep_
private

Reference to the Service Repository we are iterating over.


The documentation for this class was generated from the following files: