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  

PartitionableObjectIterator Class Reference

Inheritance diagram for PartitionableObjectIterator:

InterfaceType List of all members.

Public Methods

 PartitionableObjectIterator (const CdbConditionPtr &theParentPtr, const BdbTime &theBegin, const BdbTime &theEnd, const BdbRef(CdbBdbSConfigCollectionP)&theConfigCollRef, const BdbHandle(CdbBdbSRegistryP)&theMasterRegistryH, const BdbHandle(CdbBdbSRegistryP)&theLocalRegistryH, const CdbBdbSId &theExtendedConditionId, const BdbTime &theConditionCreationTime)
virtual ~PartitionableObjectIterator ()
virtual CdbStatus reset ()
virtual bool next ()
virtual ValueType value ()
virtual bool isValid ()
virtual InterfaceType * clone () const

Protected Methods

 PartitionableObjectIterator (const PartitionableObjectIterator &theItr)

Private Methods

 PartitionableObjectIterator ()
PartitionableObjectIterator & operator= (const PartitionableObjectIterator &theItr)
bool tryNextObject ()
bool tryNextPartition (const BdbTime &theBeginTime, const BdbTime &theEndTime)
bool tryNextConfigElement ()
bool findPartition (BdbHandle(CdbBdbSPartitionP)&theHandle, d_UShort thePartitionId)
 BdbHandle (CdbBdbSConfigCollectionP) _configCollH
 BdbHandle (CdbBdbSRegistryP) _masterRegistryH
 BdbHandle (CdbBdbSRegistryP) _localRegistryH

Private Attributes

CdbConditionPtr _parent
BdbTime _begin
BdbTime _end
CdbBdbSId _extendedConditionId
BdbTime _conditionCreationTime
bool _isValid
bool _hasEverBeenAdvanced
CdbObjectPtr _value
CdbBdbSConfigCollectionP::IteratorOfIntervals _configItr
BdbTime _beginConfig
BdbTime _endConfig
BdbTime _revisionId
PARTITION _cxt
std::stack< PARTITION_previousCxt

Constructor & Destructor Documentation

PartitionableObjectIterator::PartitionableObjectIterator   [private]
 

PartitionableObjectIterator::PartitionableObjectIterator const PartitionableObjectIterator &    theItr [protected]
 

Definition at line 667 of file CdbBdbSCondition.cc.

References _begin, _beginConfig, _conditionCreationTime, _configItr, _cxt, _end, _endConfig, _extendedConditionId, _hasEverBeenAdvanced, _isValid, _parent, _previousCxt, _revisionId, and _value.

PartitionableObjectIterator::PartitionableObjectIterator const CdbConditionPtr   theParentPtr,
const BdbTime   theBegin,
const BdbTime   theEnd,
const BdbRef(CdbBdbSConfigCollectionP)&    theConfigCollRef,
const BdbHandle(CdbBdbSRegistryP)&    theMasterRegistryH,
const BdbHandle(CdbBdbSRegistryP)&    theLocalRegistryH,
const CdbBdbSId   theExtendedConditionId,
const BdbTime   theConditionCreationTime
 

Definition at line 691 of file CdbBdbSCondition.cc.

References false.

PartitionableObjectIterator::~PartitionableObjectIterator   [virtual]
 

Definition at line 711 of file CdbBdbSCondition.cc.


Member Function Documentation

PartitionableObjectIterator::BdbHandle CdbBdbSRegistryP    [private]
 

PartitionableObjectIterator::BdbHandle CdbBdbSRegistryP    [private]
 

PartitionableObjectIterator::BdbHandle CdbBdbSConfigCollectionP    [private]
 

Referenced by tryNextConfigElement(), tryNextObject(), and tryNextPartition().

virtual InterfaceType* PartitionableObjectIterator::clone   [virtual]
 

bool PartitionableObjectIterator::findPartition BdbHandle(CdbBdbSPartitionP)&    theHandle,
d_UShort    thePartitionId
[private]
 

Definition at line 1173 of file CdbBdbSCondition.cc.

References BdbIsNull, BdbRef, cout, CdbBdbSPartitionP::originId(), result, and CdbStatus::Success.

Referenced by tryNextConfigElement(), and tryNextObject().

bool PartitionableObjectIterator::isValid   [virtual]
 

Definition at line 763 of file CdbBdbSCondition.cc.

References _isValid.

bool PartitionableObjectIterator::next   [virtual]
 

Definition at line 724 of file CdbBdbSCondition.cc.

References _configItr, _hasEverBeenAdvanced, _isValid, tryNextConfigElement(), and tryNextObject().

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

CdbStatus PartitionableObjectIterator::reset   [virtual]
 

Definition at line 715 of file CdbBdbSCondition.cc.

References _hasEverBeenAdvanced, _isValid, and CdbStatus::Success.

bool PartitionableObjectIterator::tryNextConfigElement   [private]
 

Definition at line 1227 of file CdbBdbSCondition.cc.

References PartitionableObjectIterator::PARTITION::_begin, _begin, _beginConfig, _conditionCreationTime, _configItr, _cxt, PartitionableObjectIterator::PARTITION::_end, _end, _endConfig, _extendedConditionId, PartitionableObjectIterator::PARTITION::_md, PartitionableObjectIterator::PARTITION::_mdCurrent, PartitionableObjectIterator::PARTITION::_partitionId, _previousCxt, _revisionId, CdbBdbSConfigElement::accessIsAllowed(), BdbHandle(), CdbBdbSTimeLineInterval< CdbBdbSConfigElement >::begin, cout, CdbBdbSTimeLineInterval< CdbBdbSConfigElement >::end, CdbBdbSCell::endInsertion, findMetaData(), findPartition(), CdbEnvironment::getDebugMode(), CdbItr< CdbBdbSConfigInterval >::next(), CdbBdbSConfigElement::partition, BdbTime::plusInfinity, CdbBdbSConfigElement::revision, CdbStatus::Success, time2string(), tryNextObject(), CdbBdbSConfigElement::useRevision, CdbBdbSTimeLineInterval< CdbBdbSConfigElement >::value, and CdbItr< CdbBdbSConfigInterval >::value().

Referenced by next(), and tryNextObject().

bool PartitionableObjectIterator::tryNextObject   [private]
 

Definition at line 828 of file CdbBdbSCondition.cc.

References PartitionableObjectIterator::PARTITION::_begin, _conditionCreationTime, _cxt, PartitionableObjectIterator::PARTITION::_end, _extendedConditionId, PartitionableObjectIterator::PARTITION::_md, PartitionableObjectIterator::PARTITION::_mdCurrent, _parent, PartitionableObjectIterator::PARTITION::_partitionId, _previousCxt, _value, BdbHandle(), CdbBdbSCi::begin, CdbBdbSPartitionInterval::begin, cout, CdbBdbSCi::end, CdbBdbSPartitionInterval::end, CdbBdbSCell::endInsertion, findMetaData(), findPartition(), CdbEnvironment::getDebugMode(), CdbBdbSPartitionInterval::id, CdbBdbSOi::inserted, CdbBdbSCi::isEmpty, CdbBdbSPartitionInterval::isEmpty, CdbObjectCreator< P, H >::object(), CdbBdbSCi::original, BdbTime::plusInfinity, CdbStatus::Success, time2string(), tryNextConfigElement(), and tryNextPartition().

Referenced by next(), tryNextConfigElement(), and tryNextPartition().

bool PartitionableObjectIterator::tryNextPartition const BdbTime   theBeginTime,
const BdbTime   theEndTime
[private]
 

Definition at line 775 of file CdbBdbSCondition.cc.

References _cxt, PartitionableObjectIterator::PARTITION::_md, PartitionableObjectIterator::PARTITION::_mdCurrent, PartitionableObjectIterator::PARTITION::_partitionId, BdbHandle(), BdbIsNull, BdbRef, cout, CdbEnvironment::getDebugMode(), CdbStatus::Success, time2string(), and tryNextObject().

Referenced by tryNextObject().

PartitionableObjectIterator::ValueType PartitionableObjectIterator::value   [virtual]
 

Definition at line 754 of file CdbBdbSCondition.cc.

References _isValid, and _value.


Member Data Documentation

BdbTime PartitionableObjectIterator::_begin [private]
 

Definition at line 440 of file CdbBdbSCondition.cc.

Referenced by PartitionableObjectIterator::PARTITION::PARTITION(), PartitionableObjectIterator(), and tryNextConfigElement().

BdbTime PartitionableObjectIterator::_beginConfig [private]
 

Definition at line 463 of file CdbBdbSCondition.cc.

Referenced by PartitionableObjectIterator(), and tryNextConfigElement().

BdbTime PartitionableObjectIterator::_conditionCreationTime [private]
 

Definition at line 450 of file CdbBdbSCondition.cc.

Referenced by PartitionableObjectIterator(), tryNextConfigElement(), and tryNextObject().

CdbBdbSConfigCollectionP::IteratorOfIntervals PartitionableObjectIterator::_configItr [private]
 

Definition at line 461 of file CdbBdbSCondition.cc.

Referenced by next(), PartitionableObjectIterator(), and tryNextConfigElement().

PARTITION PartitionableObjectIterator::_cxt [private]
 

Definition at line 562 of file CdbBdbSCondition.cc.

Referenced by PartitionableObjectIterator(), tryNextConfigElement(), tryNextObject(), and tryNextPartition().

BdbTime PartitionableObjectIterator::_end [private]
 

Definition at line 441 of file CdbBdbSCondition.cc.

Referenced by PartitionableObjectIterator::PARTITION::PARTITION(), PartitionableObjectIterator(), and tryNextConfigElement().

BdbTime PartitionableObjectIterator::_endConfig [private]
 

Definition at line 464 of file CdbBdbSCondition.cc.

Referenced by PartitionableObjectIterator(), and tryNextConfigElement().

CdbBdbSId PartitionableObjectIterator::_extendedConditionId [private]
 

Definition at line 448 of file CdbBdbSCondition.cc.

Referenced by PartitionableObjectIterator(), tryNextConfigElement(), and tryNextObject().

bool PartitionableObjectIterator::_hasEverBeenAdvanced [private]
 

Definition at line 455 of file CdbBdbSCondition.cc.

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

bool PartitionableObjectIterator::_isValid [private]
 

Definition at line 454 of file CdbBdbSCondition.cc.

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

CdbConditionPtr PartitionableObjectIterator::_parent [private]
 

Definition at line 438 of file CdbBdbSCondition.cc.

Referenced by PartitionableObjectIterator(), and tryNextObject().

std::stack<PARTITION> PartitionableObjectIterator::_previousCxt [private]
 

Definition at line 563 of file CdbBdbSCondition.cc.

Referenced by PartitionableObjectIterator(), tryNextConfigElement(), and tryNextObject().

BdbTime PartitionableObjectIterator::_revisionId [private]
 

Definition at line 465 of file CdbBdbSCondition.cc.

Referenced by PartitionableObjectIterator(), and tryNextConfigElement().

CdbObjectPtr PartitionableObjectIterator::_value [private]
 

Definition at line 457 of file CdbBdbSCondition.cc.

Referenced by PartitionableObjectIterator(), tryNextObject(), and value().


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

 


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

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