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  

BdbObject Class Reference
[BdbCond]

Inheritance diagram for BdbObject:

BdbPersObj BdbDataListsP BdbHWMP BdbPartitionObject EmcFooClassP EmcFooClassP_001 EmcFooClassP_002 EmcTestClass1 EmcTestClass2 SvtTestClass1 SvtTestClass2 List of all members.

Public Methods

 BdbObject ()
virtual ~BdbObject ()
 BdbHandle (BdbObject) narrow(ooTypeNumber theTypeNumber)
 BdbRef (BdbObject) clone(const BdbRefAny &theHint

Static Public Methods

void cloneObject (const BdbRefAny &oldobj, BdbRefAny &newobj, const BdbRefAny &theHint, BdbCondCache< BdbRefAny > *theCache)
void clone (const BdbRefAny &oldobj, BdbRefAny &newobj, const BdbRefAny &theHint, BdbCondCache< BdbRefAny > *theCache)

Public Attributes

BdbCondCache< BdbRefAny > * theCache

Protected Methods

virtual void userClone (const BdbRefAny &theHint, BdbCondCache< BdbRefAny > *theCache)
void cloneMap (BdbRef(ooMap)&theMap, const BdbRefAny &theHint, BdbCondCache< BdbRefAny > *theCache)

Constructor & Destructor Documentation

BdbObject::BdbObject  
 

Definition at line 42 of file BdbObject.cc.

BdbObject::~BdbObject   [virtual]
 

Definition at line 50 of file BdbObject.cc.


Member Function Documentation

BdbObject::BdbHandle BdbObject   
 

Referenced by cloneMap(), BdbDataListsP::getBool(), BdbDataListsP::getFloat(), BdbDataListsP::getLong(), BdbDataListsP::getString(), BdbDataListsP::putBool(), BdbDataListsP::putFloat(), BdbDataListsP::putLong(), and BdbDataListsP::putString().

BdbObject::BdbRef BdbObject    const
 

Referenced by clone(), BdbDataListsP::putBool(), BdbDataListsP::putFloat(), BdbDataListsP::putLong(), and BdbDataListsP::putString().

void BdbObject::clone const BdbRefAny &    oldobj,
BdbRefAny &    newobj,
const BdbRefAny &    theHint,
BdbCondCache< BdbRefAny > *    theCache
[static]
 

Definition at line 224 of file BdbObject.cc.

References BdbRef(), BdbRefAny, and cloneObject().

Referenced by cloneMap().

void BdbObject::cloneMap BdbRef(ooMap)&    theMap,
const BdbRefAny &    theHint,
BdbCondCache< BdbRefAny > *    theCache
[protected]
 

Definition at line 164 of file BdbObject.cc.

References BdbHandle(), BdbRefAny, clone(), and theMap.

void BdbObject::cloneObject const BdbRefAny &    oldobj,
BdbRefAny &    newobj,
const BdbRefAny &    theHint,
BdbCondCache< BdbRefAny > *    theCache
[static]
 

Definition at line 215 of file BdbObject.cc.

References BdbCondCache< Object >::addObject(), and BdbRefAny.

Referenced by clone().

void BdbObject::userClone const BdbRefAny &    theHint,
BdbCondCache< BdbRefAny > *    theCache
[protected, virtual]
 

userClone()

This procedure is ment to perform user-specific copies of the child objects.

NOTE: The method is called against a *newly created object*.

The correct behavior of the method would be to to call BdbObject::clone( ) for each child object and to replace the links borowed from the old one.

A reference to the special object cache is passed as a parameter to the method. The cache may be used to avoid data duplications on the output.

In the default implementation the procedure does nothing.

This is virtual protected interface. A user may override the method by their own implementation.

Definition at line 153 of file BdbObject.cc.

References BdbRefAny.


Member Data Documentation

BdbCondCache<BdbRefAny>* BdbObject::theCache
 

Definition at line 66 of file BdbObject.ddl.


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