Bdb packages | Design docs | Source docs | Guidelines | Recent releases

Search | Site Map .

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

CdbBdbWDatabaseItr Class Reference
[CdbBdbWrapper]

The internal implementation for the public iterators. More...

#include <CdbBdbWDatabaseItr.hh>

Inheritance diagram for CdbBdbWDatabaseItr:

InterfaceType List of all members.

Public Methods

 CdbBdbWDatabaseItr (const CdbPtr &theParent)
 The normal constructor.

virtual ~CdbBdbWDatabaseItr ()
 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 InterfaceType * clone () const
 Make a clone of itself.


Protected Methods

 CdbBdbWDatabaseItr (const CdbBdbWDatabaseItr &theItr)
 The copy constructor.


Private Methods

 CdbBdbWDatabaseItr ()
 The default constructor (NOT IMPLEMENTED).

CdbBdbWDatabaseItr & operator= (const CdbBdbWDatabaseItr &theItr)
 The assignment operator (NOT IMPLEMENTED).


Private Attributes

CdbPtr _myParent
bool _isValid
bool _hasEverBeenAdvanced
std::string _value

Detailed Description

The internal implementation for the public iterators.

This class provides the actual implementation of the corresponding iterator interface. Currently it's a very trivial implementation returning a default database name.

See also:
CdbIItr , CdbIItr::InterfaceType , CdbIItr::ValueType , CdbDatabaseItr , CdbDatabase , CdbDatabasePtr

Definition at line 23 of file CdbBdbWDatabaseItr.hh.


Constructor & Destructor Documentation

CdbBdbWDatabaseItr::CdbBdbWDatabaseItr   [private]
 

The default constructor (NOT IMPLEMENTED).

Is disabled...

Referenced by clone().

CdbBdbWDatabaseItr::CdbBdbWDatabaseItr const CdbBdbWDatabaseItr &    theItr [protected]
 

The copy constructor.

The only reason why we have it implemented is because it's needed to implement the clone method.

See also:
CdbBdbWDatabaseItr::clone()

Definition at line 21 of file CdbBdbWDatabaseItr.cc.

CdbBdbWDatabaseItr::CdbBdbWDatabaseItr const CdbPtr   theParent
 

The normal constructor.

Non 0 smart pointer is expected.

Definition at line 12 of file CdbBdbWDatabaseItr.cc.

References false.

CdbBdbWDatabaseItr::~CdbBdbWDatabaseItr   [virtual]
 

The destructor.

Details...

Definition at line 28 of file CdbBdbWDatabaseItr.cc.


Member Function Documentation

CdbBdbWDatabaseItr::InterfaceType * CdbBdbWDatabaseItr::clone   [virtual]
 

Make a clone of itself.

See also:
CdbIItr::clone()

Definition at line 70 of file CdbBdbWDatabaseItr.cc.

References CdbBdbWDatabaseItr().

bool CdbBdbWDatabaseItr::isValid   [virtual]
 

Check if an iterator is valid.

This implements the corresponding method of the base class.

See also:
CdbIItr::isValid()

Definition at line 64 of file CdbBdbWDatabaseItr.cc.

References _isValid.

bool CdbBdbWDatabaseItr::next   [virtual]
 

Advance an iterator to the next position.

This implements the corresponding method of the base class.

See also:
CdbIItr::next()

Definition at line 43 of file CdbBdbWDatabaseItr.cc.

References _hasEverBeenAdvanced, _isValid, _myParent, and _value.

CdbBdbWDatabaseItr& CdbBdbWDatabaseItr::operator= const CdbBdbWDatabaseItr &    theItr [private]
 

The assignment operator (NOT IMPLEMENTED).

Is disabled...

CdbStatus CdbBdbWDatabaseItr::reset   [virtual]
 

Reset an iterator to its initial state.

This implements the corresponding method of the base class.

See also:
CdbIItr::reset , CdbStatus

Definition at line 32 of file CdbBdbWDatabaseItr.cc.

References _hasEverBeenAdvanced, _isValid, _value, and CdbStatus::Success.

CdbBdbWDatabaseItr::ValueType CdbBdbWDatabaseItr::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

Definition at line 57 of file CdbBdbWDatabaseItr.cc.

References _value.


Member Data Documentation

bool CdbBdbWDatabaseItr::_hasEverBeenAdvanced [private]
 

Definition at line 111 of file CdbBdbWDatabaseItr.hh.

Referenced by next(), and reset().

bool CdbBdbWDatabaseItr::_isValid [private]
 

Definition at line 110 of file CdbBdbWDatabaseItr.hh.

Referenced by isValid(), next(), and reset().

CdbPtr CdbBdbWDatabaseItr::_myParent [private]
 

Definition at line 108 of file CdbBdbWDatabaseItr.hh.

Referenced by next().

std::string CdbBdbWDatabaseItr::_value [private]
 

Definition at line 113 of file CdbBdbWDatabaseItr.hh.

Referenced by next(), reset(), and value().


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

 


BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us

Page Owner: Jacek Becla
Last Update: October 04, 2002