Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

CdbBdbSCollectionNameItr Class Reference

The internal implementation for the public iterator for elements of collections. More...

#include <CdbBdbSCollectionNameItr.hh>

Inheritance diagram for CdbBdbSCollectionNameItr:

CdbIItr< const char * > List of all members.

Public Types

typedef CdbIItr< const char
* >::ValueType 
ValueType
 Introduce a type definition for the purpose of easier reference.

typedef CdbIItr< const char
* >::InterfaceType 
InterfaceType

Public Member Functions

 CdbBdbSCollectionNameItr (const BdbRef(BdbMap)&theMapRef)
 The normal constructor.

virtual ~CdbBdbSCollectionNameItr ()
 The destructor.

virtual CdbStatus reset ()
 Reset an iterator to its initial state.

virtual bool next ()
 Advance an iterator to the next position.

virtual ValueType value ()
 Obtain the currently reffered value.

virtual bool isValid ()
 Check if an iterator is valid.

virtual InterfaceTypeclone () const
 Make a clone of itself.


Detailed Description

The internal implementation for the public iterator for elements of collections.

The iterator will return extract end return the names of elements stored in the collection.

NOTE: Pay attention to the implementation of the "clone()" method of this iterator. This method does not produce an iterator being exactly at the same state as the original one (iterator).

Definition at line 21 of file CdbBdbSCollectionNameItr.hh.


Member Typedef Documentation

typedef CdbIItr< const char* >::InterfaceType CdbBdbSCollectionNameItr::InterfaceType
 

This is a type of a base iterator interface

Reimplemented from CdbIItr< const char * >.

Definition at line 26 of file CdbBdbSCollectionNameItr.hh.

typedef CdbIItr< const char* >::ValueType CdbBdbSCollectionNameItr::ValueType
 

Introduce a type definition for the purpose of easier reference.

This definition provides access to the type of the parameter used for the concrete template instantiation.

Reimplemented from CdbIItr< const char * >.

Definition at line 25 of file CdbBdbSCollectionNameItr.hh.


Constructor & Destructor Documentation

CdbBdbSCollectionNameItr::CdbBdbSCollectionNameItr const BdbRef(BdbMap)&    theMapRef
 

The normal constructor.

The (oo-)map object passed as a parameter must not be null. Otherwise the constructor will abort the execution.

Definition at line 17 of file CdbBdbSCollectionNameItr.cc.

Referenced by clone().

CdbBdbSCollectionNameItr::~CdbBdbSCollectionNameItr   [virtual]
 

The destructor.

Details...

Definition at line 25 of file CdbBdbSCollectionNameItr.cc.


Member Function Documentation

CdbBdbSCollectionNameItr::InterfaceType * CdbBdbSCollectionNameItr::clone   const [virtual]
 

Make a clone of itself.

See also:
CdbIItr::clone()
WARNING: The current implementation of this method will return an instance reset to the original state, as if no "next" method has ever been called against it, even if the original instance is already in the "isValid = true" state. The reason of ths is that ooMapItr does not have neither copy ctor, nor the assignment operator.

Implements CdbIItr< const char * >.

Definition at line 82 of file CdbBdbSCollectionNameItr.cc.

References CdbBdbSCollectionNameItr().

bool CdbBdbSCollectionNameItr::isValid   [virtual]
 

Check if an iterator is valid.

This implements the corresponding method of the base class.

See also:
CdbIItr::isValid()

Implements CdbIItr< const char * >.

Definition at line 76 of file CdbBdbSCollectionNameItr.cc.

bool CdbBdbSCollectionNameItr::next   [virtual]
 

Advance an iterator to the next position.

This implements the corresponding method of the base class.

See also:
CdbIItr::next()

Implements CdbIItr< const char * >.

Definition at line 38 of file CdbBdbSCollectionNameItr.cc.

References BdbRef().

CdbStatus CdbBdbSCollectionNameItr::reset   [virtual]
 

Reset an iterator to its initial state.

This implements the corresponding method of the base class.

See also:
CdbIItr::reset

CdbStatus

Implements CdbIItr< const char * >.

Definition at line 29 of file CdbBdbSCollectionNameItr.cc.

References CdbStatus::Success.

CdbBdbSCollectionNameItr::ValueType CdbBdbSCollectionNameItr::value   [virtual]
 

Obtain the currently reffered value.

This implements the corresponding method of the base class.

See also:
CdbIItr::value()

CdbIItr::ValueType

Returns:
the current value the iterator is set on

Implements CdbIItr< const char * >.

Definition at line 66 of file CdbBdbSCollectionNameItr.cc.


The documentation for this class was generated from the following files:
Generated on Mon Dec 5 18:22:19 2005 for CDB by doxygen1.3-rc3