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

dbHandleBase Class Template Reference

Db objects: DbBaseHandle. More...

#include <DbBase.h>

Inheritance diagram for dbHandleBase:

dbHandle< DbContainer > dbHandle< DbDataBase > dbHandle< DbFederation > dbHandle< DbSession > dbObjectHandle dbHandle dbHandle< DbObject > List of all members.

Public Methods

_DataTypeoperator-> ()
 Dereference operator. More...

const _DataTypeoperator-> () const
 Dereference operator(CONST). More...

_DataTypeptr ()
 Access to underlying object. More...

const _DataTypeptr () const
 Access to underlying object (CONST). More...

 operator bool () const
 Validity check through operator bool. More...

bool operator! () const
 Validity check through operator NOT. More...

bool isValid () const
 Validity check (Objy like). More...

bool is_null () const
 Validity check (Objy like). More...

unsigned char type () const
 Inquire storage type of the handle. More...


Protected Types

typedef T _DataType
 Data type definition. More...


Protected Methods

 dbHandleBase ()
 Standard constructor. More...

virtual ~dbHandleBase ()
 Standard destructor. More...

void setType (unsigned char type) const
 Set handle type. More...


Protected Attributes

_DataTypem_ptr
 Data member: unfortunately has to be mutal. More...

unsigned char m_type
 Data member: Technology type. More...


Detailed Description

template<class T> template class dbHandleBase

Db objects: DbBaseHandle.

Description: Definition of the generic Db data handle.

Dependencies:

History :

    +---------+----------------------------------------------+--------+
    |    Date |                 Comment                      | Who    |
    +---------+----------------------------------------------+--------+
    | 21/04/99| Initial version.                             | MF     |
    +---------+----------------------------------------------+--------+
    
Author: M.Frank Version: 1.0

Definition at line 36 of file DbBase.h.


Member Typedef Documentation

template<classT>
typedef T dbHandleBase<T>::_DataType [protected]
 

Data type definition.

Definition at line 39 of file DbBase.h.


Constructor & Destructor Documentation

template<classT>
dbHandleBase<T>::dbHandleBase<T> ( ) [inline, protected]
 

Standard constructor.

Definition at line 45 of file DbBase.h.

template<classT>
dbHandleBase<T>::~dbHandleBase<T> ( ) [inline, protected, virtual]
 

Standard destructor.

Definition at line 48 of file DbBase.h.


Member Function Documentation

template<classT>
bool dbHandleBase<T>::isValid ( ) const [inline]
 

Validity check (Objy like).

Reimplemented in dbHandle< DbContainer >.

Definition at line 83 of file DbBase.h.

Referenced by DbAddress::DbAddress(), DbContainer::DbContainer(), dbHandle< DbDataBase >::addAssocEntry(), dbHandle< DbDataBase >::addType(), DbPersistent::allocate(), DbCnvSvc::connectOutput(), DbCnvSvc::createIterator(), DbDatabaseCnv::createObj(), DbNTupleCnv::createRep(), DbDirectoryCnv::createRep(), DbBaseConverter::createRep(), dbHandle< DbSession >::db(), dbHandle< DbFederation >::db(), dbHandle< DbDataBase >::db(), dbHandle< DbContainer >::db(), DbBaseConverter::doUpdateRepRefs(), dbHandle< DbFederation >::exist(), dbHandle< DbDataBase >::exist(), DbContainerImplementation::getContainer(), DbDataBaseImplementation::getDataBase(), DbFederationImplementation::getFederation(), DbSessionImplementation::getSession(), dbHandle< DbContainer >::i_addEntry(), dbHandle< DbContainer >::i_updateEntry(), is_null(), dbHandle< DbSession >::msgSvc(), dbHandle< DbFederation >::msgSvc(), dbHandle< DbDataBase >::msgSvc(), dbHandle< DbContainer >::msgSvc(), dbIter< DbObject >::next(), dbHandle< DbDataBase >::objType(), dbHandle< DbSession >::open(), DbObjectAccessor::open(), dbHandle< DbFederation >::open(), dbHandle< DbDataBase >::open(), dbHandle< DbContainer >::open(), operator bool(), DbObject::operator new(), operator!(), DbEvtSelector::reference(), dbHandle< DbSession >::remove(), dbHandle< DbDataBase >::remove(), DbContainer::remove(), dbHandle< DbContainer >::remove(), dbIter::scan(), DbDirectoryCnv::updateObjRefs(), DbDirectoryCnv::updateRep(), DbBaseConverter::updateRep(), DbContainer::~DbContainer(), and DbFederation::~DbFederation().

template<classT>
bool dbHandleBase<T>::is_null ( ) const [inline]
 

Validity check (Objy like).

Definition at line 87 of file DbBase.h.

template<classT>
dbHandleBase<T>::operator bool ( ) const [inline]
 

Validity check through operator bool.

Definition at line 75 of file DbBase.h.

template<classT>
bool dbHandleBase<T>::operator! ( ) const [inline]
 

Validity check through operator NOT.

Definition at line 79 of file DbBase.h.

template<classT>
const _DataType * dbHandleBase<T>::operator-> ( ) const [inline]
 

Dereference operator(CONST).

Definition at line 63 of file DbBase.h.

template<classT>
_DataType * dbHandleBase<T>::operator-> ( ) [inline]
 

Dereference operator.

Definition at line 59 of file DbBase.h.

template<classT>
const _DataType * dbHandleBase<T>::ptr ( ) const [inline]
 

Access to underlying object (CONST).

Definition at line 71 of file DbBase.h.

template<classT>
_DataType * dbHandleBase<T>::ptr ( ) [inline]
 

Access to underlying object.

Definition at line 67 of file DbBase.h.

Referenced by dbHandle< DbDataBase >::open(), dbHandle< DbObject >::operator=(), dbHandle::operator=(), dbObjectHandle::operator=(), and DbContainer::remove().

template<classT>
void dbHandleBase<T>::setType ( unsigned char type ) const [inline, protected]
 

Set handle type.

Reimplemented in dbObjectHandle.

Definition at line 54 of file DbBase.h.

Referenced by dbHandle< DbObject >::dbHandle(), dbHandle::dbHandle(), dbObjectHandle::dbObjectHandle(), dbHandle< DbObject >::operator=(), dbHandle::operator=(), and dbObjectHandle::operator=().

template<classT>
unsigned char dbHandleBase<T>::type ( ) const [inline]
 

Inquire storage type of the handle.

Definition at line 91 of file DbBase.h.

Referenced by DbAddress::DbAddress(), DbDataBase::DbDataBase(), DbFederation::DbFederation(), dbIter::next(), dbHandle< DbSession >::open(), dbObjectHandle::open(), dbHandle< DbDataBase >::open(), DbObject::operator new(), dbHandle< DbSession >::operator=(), dbHandle< DbObject >::operator=(), dbHandle::operator=(), dbObjectHandle::operator=(), OODataBaseImplementation::prepareLink(), DbContainer::remove(), dbIter< DbObject >::scan(), dbIter::scan(), and DbObjectGuard::type().


Member Data Documentation

template<classT>
_DataType * dbHandleBase<T>::m_ptr [mutable, protected]
 

Data member: unfortunately has to be mutal.

Definition at line 41 of file DbBase.h.

template<classT>
unsigned char dbHandleBase<T>::m_type [mutable, protected]
 

Data member: Technology type.

Definition at line 43 of file DbBase.h.


The documentation for this class was generated from the following file:
Generated at Wed Nov 21 12:22:22 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000