| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

OnXSvc::KeyedIterator< Object > Class Template Reference

#include <KeyedType.h>

Collaboration diagram for OnXSvc::KeyedIterator< Object >:

[legend]
List of all members.

Public Types

typedef KeyedContainer< Object,
Containers::HashMap
Collection

Public Member Functions

virtual Lib::Identifier object ()
virtual void next ()
virtual void * tag ()
 KeyedIterator (Collection *aVector=0)

Private Attributes

CollectionfVector
Collection::iterator fIterator

Detailed Description

template<class Object>
class OnXSvc::KeyedIterator< Object >

Definition at line 25 of file KeyedType.h.


Member Typedef Documentation

template<class Object>
typedef KeyedContainer< Object, Containers::HashMap> OnXSvc::KeyedIterator< Object >::Collection

Definition at line 43 of file KeyedType.h.


Constructor & Destructor Documentation

template<class Object>
OnXSvc::KeyedIterator< Object >::KeyedIterator ( Collection aVector = 0  )  [inline]

Definition at line 44 of file KeyedType.h.

00044                                         :fVector(aVector) {
00045     if(fVector) fIterator = fVector->begin();
00046   }


Member Function Documentation

template<class Object>
virtual Lib::Identifier OnXSvc::KeyedIterator< Object >::object (  )  [inline, virtual]

Definition at line 27 of file KeyedType.h.

00027                                  {
00028     if(!fVector) return 0;
00029     if(fIterator==fVector->end()) return 0;
00030     return *fIterator;
00031   }

template<class Object>
virtual void OnXSvc::KeyedIterator< Object >::next (  )  [inline, virtual]

Definition at line 32 of file KeyedType.h.

00032                       { 
00033     if(!fVector) return;
00034     // Skip null objects.
00035     while(true) {
00036       ++fIterator;        
00037       if(fIterator==fVector->end()) return;
00038       if(*fIterator) return;
00039     }
00040   }

template<class Object>
virtual void* OnXSvc::KeyedIterator< Object >::tag (  )  [inline, virtual]

Definition at line 41 of file KeyedType.h.

00041 { return 0;}


Member Data Documentation

template<class Object>
Collection* OnXSvc::KeyedIterator< Object >::fVector [private]

Definition at line 48 of file KeyedType.h.

template<class Object>
Collection::iterator OnXSvc::KeyedIterator< Object >::fIterator [private]

Definition at line 49 of file KeyedType.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:02:01 2011 for OnXSvc by doxygen 1.4.7