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  

CdbBdbSDatabaseItr Class Reference
[CdbBdbShared]

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

#include <CdbBdbSDatabaseItr.hh>

Inheritance diagram for CdbBdbSDatabaseItr:

InterfaceType List of all members.

Public Methods

 CdbBdbSDatabaseItr (const CdbPtr &theParent)
 The normal constructor.

virtual ~CdbBdbSDatabaseItr ()
 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

 CdbBdbSDatabaseItr (const CdbBdbSDatabaseItr &theItr)
 The copy constructor.


Private Methods

 CdbBdbSDatabaseItr ()
 The default constructor (NOT IMPLEMENTED).

CdbBdbSDatabaseItr & operator= (const CdbBdbSDatabaseItr &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 22 of file CdbBdbSDatabaseItr.hh.


Constructor & Destructor Documentation

CdbBdbSDatabaseItr::CdbBdbSDatabaseItr   [private]
 

The default constructor (NOT IMPLEMENTED).

Is disabled...

Referenced by clone().

CdbBdbSDatabaseItr::CdbBdbSDatabaseItr const CdbBdbSDatabaseItr &    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:
CdbBdbSDatabaseItr::clone()

Definition at line 23 of file CdbBdbSDatabaseItr.cc.

CdbBdbSDatabaseItr::CdbBdbSDatabaseItr const CdbPtr   theParent
 

The normal constructor.

Non 0 smart pointer is expected.

Definition at line 14 of file CdbBdbSDatabaseItr.cc.

References false.

CdbBdbSDatabaseItr::~CdbBdbSDatabaseItr   [virtual]
 

The destructor.

Details...

Definition at line 30 of file CdbBdbSDatabaseItr.cc.


Member Function Documentation

CdbBdbSDatabaseItr::InterfaceType * CdbBdbSDatabaseItr::clone   [virtual]
 

Make a clone of itself.

See also:
CdbIItr::clone()

Definition at line 73 of file CdbBdbSDatabaseItr.cc.

References CdbBdbSDatabaseItr().

bool CdbBdbSDatabaseItr::isValid   [virtual]
 

Check if an iterator is valid.

This implements the corresponding method of the base class.

See also:
CdbIItr::isValid()

Definition at line 67 of file CdbBdbSDatabaseItr.cc.

References _isValid.

bool CdbBdbSDatabaseItr::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 45 of file CdbBdbSDatabaseItr.cc.

References _hasEverBeenAdvanced, _isValid, _myParent, and _value.

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

The assignment operator (NOT IMPLEMENTED).

Is disabled...

CdbStatus CdbBdbSDatabaseItr::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 34 of file CdbBdbSDatabaseItr.cc.

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

CdbBdbSDatabaseItr::ValueType CdbBdbSDatabaseItr::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 60 of file CdbBdbSDatabaseItr.cc.

References _value.


Member Data Documentation

bool CdbBdbSDatabaseItr::_hasEverBeenAdvanced [private]
 

Definition at line 110 of file CdbBdbSDatabaseItr.hh.

Referenced by next(), and reset().

bool CdbBdbSDatabaseItr::_isValid [private]
 

Definition at line 109 of file CdbBdbSDatabaseItr.hh.

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

CdbPtr CdbBdbSDatabaseItr::_myParent [private]
 

Definition at line 107 of file CdbBdbSDatabaseItr.hh.

Referenced by next().

std::string CdbBdbSDatabaseItr::_value [private]
 

Definition at line 112 of file CdbBdbSDatabaseItr.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