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

CdbItr< T > Class Template Reference

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

#include <CdbItr.hh>

Inheritance diagram for CdbItr< T >:

CdbIItr< T > List of all members.

Public Member Functions

 CdbItr ()
 The default constructor.

 CdbItr (const CdbItr< T > &theItr)
 The copy constructor.

 CdbItr (CdbIItr< T > *thePtr)
 The constructor.

CdbItr & operator= (const CdbItr< T > &theItr)
 The assignment operator.

virtual ~CdbItr ()
 The destructor.

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

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

virtual T value ()
 Obtain the currently reffered value.

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

virtual CdbIItr< T > * clone () const
 Make a clone of itself.


Detailed Description

template<typename T>
class CdbItr< T >

The generic implementation for the public iterators.

The class takes the only template parameter: T - a type of the values operated by the iterator.

See also:
CdbIItr

Definition at line 18 of file CdbItr.hh.


Constructor & Destructor Documentation

template<typename T>
CdbItr< T >::CdbItr  
 

The default constructor.

Leaves the iterator in the invalid state.

See also:
CdbIItr::isValid()

Definition at line 16 of file CdbItr.cc.

template<typename T>
CdbItr< T >::CdbItr const CdbItr< T > &    theItr
 

The copy constructor.

More details to come...

Definition at line 21 of file CdbItr.cc.

template<typename T>
CdbItr< T >::CdbItr CdbIItr< T > *    thePtr [explicit]
 

The constructor.

Initialize the iterator by a pointer onto a base class's object.

NOTE: That we're taking over the ownership of the passed object.

Definition at line 28 of file CdbItr.cc.

template<typename T>
CdbItr< T >::~CdbItr   [virtual]
 

The destructor.

Details...

Definition at line 33 of file CdbItr.cc.


Member Function Documentation

template<typename T>
CdbIItr< T > * CdbItr< T >::clone   const [virtual]
 

Make a clone of itself.

See also:
CdbIItr::clone()

Implements CdbIItr< T >.

Definition at line 79 of file CdbItr.cc.

template<typename T>
bool CdbItr< T >::isValid   [virtual]
 

Check if an iterator is valid.

This implements the corresponding method of the base class.

See also:
CdbIItr::isValid

Implements CdbIItr< T >.

Definition at line 72 of file CdbItr.cc.

template<typename T>
bool CdbItr< T >::next   [virtual]
 

Advance an iterator to the next position.

This implements the corresponding method of the base class.

See also:
CdbIItr::next

Implements CdbIItr< T >.

Definition at line 56 of file CdbItr.cc.

Referenced by CdbBdbSRallocatorP< RT, RT_OPERATIONS_POLICY >::allocate(), CdbBdbSPartitionP::close(), CdbMySQLOrigin::create_condition(), CdbMySQLOrigin::create_partition(), CdbBdbSSimpleClusterP::createIncrement(), CdbBdbSPartitionP::createIncrement(), CdbBdbSRallocatorP< RT, RT_OPERATIONS_POLICY >::dump(), CdbRooRoPartitionsLayoutR::find(), CdbRooRoCondition::findObject(), CdbBdbSCondition::findObject(), CdbBdbSPartitionP::instantiate(), CdbRooRoPartitionsLayoutR::iterator(), main(), CdbRooRoDatabase::physicalConditionIterator(), CdbBdbSMetaDataP::rebuild(), CdbRooRoFolderR::removeFolder(), CdbBdbSRegistryP::updateMainView(), and CdbBdbSCollectionP::~CdbBdbSCollectionP().

template<typename T>
CdbItr< T > & CdbItr< T >::operator= const CdbItr< T > &    theItr
 

The assignment operator.

More details to come...

Definition at line 40 of file CdbItr.cc.

References CdbItr< T >::_myItr.

template<typename T>
CdbStatus CdbItr< T >::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< T >.

Definition at line 48 of file CdbItr.cc.

References CdbStatus::Error.

template<typename T>
T CdbItr< T >::value   [virtual]
 

Obtain the currently reffered value.

This implements the corresponding method of the base class.

See also:
CdbIItr::value
Returns:
the current value the iterator is set on

Implements CdbIItr< T >.

Definition at line 64 of file CdbItr.cc.

Referenced by CdbBdbSRallocatorP< RT, RT_OPERATIONS_POLICY >::allocate(), CdbBdbSPartitionP::close(), CdbMySQLOrigin::create_condition(), CdbMySQLOrigin::create_partition(), CdbBdbSSimpleClusterP::createIncrement(), CdbBdbSPartitionP::createIncrement(), CdbBdbSRallocatorP< RT, RT_OPERATIONS_POLICY >::dump(), CdbRooRoPartitionsLayoutR::find(), CdbRooRoCondition::findObject(), CdbBdbSCondition::findObject(), CdbBdbSPartitionP::instantiate(), CdbRooRoPartitionsLayoutR::iterator(), main(), CdbRooRoDatabase::physicalConditionIterator(), CdbBdbSMetaDataP::rebuild(), CdbBdbSRegistryP::updateMainView(), and CdbBdbSCollectionP::~CdbBdbSCollectionP().


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