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

CdbBdbSAbsBtreeItr< K, FCP, ORDER > Class Template Reference

The internal implementation for the public iterator for B-tree keys. More...

#include <CdbBdbSAbsBtreeItr.hh>

Inheritance diagram for CdbBdbSAbsBtreeItr< K, FCP, ORDER >:

CdbIItr< K > List of all members.

Public Types

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

typedef CdbIItr< K >::InterfaceType InterfaceType

Public Member Functions

 CdbBdbSAbsBtreeItr (const CdbBdbSAbsBtree< K, FCP, ORDER > *theTree)
 The normal constructor.

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


Protected Member Functions

 CdbBdbSAbsBtreeItr (const CdbBdbSAbsBtreeItr< K, FCP, ORDER > &theItr)
 The copy constructor.


Detailed Description

template<class K, class FCP, class ORDER>
class CdbBdbSAbsBtreeItr< K, FCP, ORDER >

The internal implementation for the public iterator for B-tree keys.

This class provides the actual implementation of the B-tree browsing. This class has the same template parameters as the B-tree class.

DESIGN & IMPLEMENTATION NOTE:

Due to current design of the abstract B-tree class the current iterator's interface is type-intrusive. This may be solved later.

See also:
CdbIItr

CdbBdbSAbsBtree

Definition at line 34 of file CdbBdbSAbsBtreeItr.hh.


Member Typedef Documentation

template<class K, class FCP, class ORDER>
typedef CdbIItr<K>::InterfaceType CdbBdbSAbsBtreeItr< K, FCP, ORDER >::InterfaceType
 

This is a type of a base iterator interface

Reimplemented from CdbIItr< K >.

Definition at line 39 of file CdbBdbSAbsBtreeItr.hh.

template<class K, class FCP, class ORDER>
typedef CdbIItr<K>::ValueType CdbBdbSAbsBtreeItr< K, FCP, ORDER >::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< K >.

Definition at line 38 of file CdbBdbSAbsBtreeItr.hh.


Constructor & Destructor Documentation

template<class K, class FCP, class ORDER>
CdbBdbSAbsBtreeItr< K, FCP, ORDER >::CdbBdbSAbsBtreeItr const CdbBdbSAbsBtreeItr< K, FCP, ORDER > &    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:
CdbBdbSAbsBtreeItr::clone()

Definition at line 33 of file CdbBdbSAbsBtreeItr.cc.

template<class K, class FCP, class ORDER>
CdbBdbSAbsBtreeItr< K, FCP, ORDER >::CdbBdbSAbsBtreeItr const CdbBdbSAbsBtree< K, FCP, ORDER > *    theTree
 

The normal constructor.

Non 0 pointer is expected.

Definition at line 22 of file CdbBdbSAbsBtreeItr.cc.

template<class K, class FCP, class ORDER>
CdbBdbSAbsBtreeItr< K, FCP, ORDER >::~CdbBdbSAbsBtreeItr   [virtual]
 

The destructor.

Details...

Definition at line 45 of file CdbBdbSAbsBtreeItr.cc.


Member Function Documentation

template<class K, class FCP, class ORDER>
CdbBdbSAbsBtreeItr< K, FCP, ORDER >::InterfaceType * CdbBdbSAbsBtreeItr< K, FCP, ORDER >::clone   const [virtual]
 

Make a clone of itself.

See also:
CdbIItr::clone()

Implements CdbIItr< K >.

Definition at line 227 of file CdbBdbSAbsBtreeItr.cc.

template<class K, class FCP, class ORDER>
bool CdbBdbSAbsBtreeItr< K, FCP, ORDER >::isValid   [virtual]
 

Check if an iterator is valid.

This implements the corresponding method of the base class.

See also:
CdbIItr::isValid()

Implements CdbIItr< K >.

Definition at line 218 of file CdbBdbSAbsBtreeItr.cc.

template<class K, class FCP, class ORDER>
bool CdbBdbSAbsBtreeItr< K, FCP, ORDER >::next   [virtual]
 

Advance an iterator to the next position.

This implements the corresponding method of the base class.

See also:
CdbIItr::next()

Implements CdbIItr< K >.

Definition at line 120 of file CdbBdbSAbsBtreeItr.cc.

template<class K, class FCP, class ORDER>
CdbStatus CdbBdbSAbsBtreeItr< K, FCP, ORDER >::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< K >.

Definition at line 52 of file CdbBdbSAbsBtreeItr.cc.

References CdbStatus::Success.

template<class K, class FCP, class ORDER>
CdbBdbSAbsBtreeItr< K, FCP, ORDER >::ValueType CdbBdbSAbsBtreeItr< K, FCP, ORDER >::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< K >.

Definition at line 207 of file CdbBdbSAbsBtreeItr.cc.


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