The Gaudi Framework
master (37c0b60a)
|
User example objects: SmartRefBase. More...
#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/SmartRefBase.h>
Public Types | |
enum | { DATAOBJECT, CONTAINEDOBJECT } |
Public Member Functions | |
const ContainedObject * | accessData (const ContainedObject *typ) const |
Load on demand of ContainedObject like references. More... | |
const DataObject * | accessData (const DataObject *typ) const |
Load on demand of DataObject like references. More... | |
bool | isEqualEx (const DataObject *pObj, const SmartRefBase &c) const |
Extended equality check. More... | |
bool | isEqualEx (const ContainedObject *pObj, const SmartRefBase &c) const |
Extended equality check. More... | |
bool | isEqual (const ContainedObject *, const SmartRefBase &c) const |
Equality operator for ContainedObject like references. More... | |
bool | isEqual (const DataObject *, const SmartRefBase &c) const |
Equality operator for DataObject like references. More... | |
void | writeObject (const DataObject *pObject, StreamBuffer &s) const |
Output streamer for DataObject like references. More... | |
void | writeObject (const ContainedObject *pObject, StreamBuffer &s) const |
Output streamer for ContainedObject like references. More... | |
DataObject * | readObject (const DataObject *, StreamBuffer &s) const |
Input streamer for DataObject like references. More... | |
ContainedObject * | readObject (const ContainedObject *, StreamBuffer &s) const |
Output streamer for ContainedObject like references. More... | |
void | setObjectType (const ContainedObject *) const |
void | setObjectType (const DataObject *) const |
const std::string & | path () const |
Shortcut to access the path to the linked object. More... | |
long | objectType () const |
void | set (DataObject *pObj, long hint_id, long link_id) |
Setup smart reference when reading. Must be allowed from external sources. More... | |
Public Attributes | |
long | m_hintID |
Object data: ID of the link hint to the identifiable object. More... | |
long | m_linkID |
Object data: ID of the object within the identifiable container (if any) More... | |
const DataObject * | m_data |
Object data: Pointer to the identifiable object the link originates. More... | |
const ContainedObject * | m_contd |
Object data: Pointer to the Contained object (if applicable) More... | |
long | m_type |
User example objects: SmartRefBase.
Description: Base class of SmartReference objects. The base class handles the object requests to the data store. The separation of the SmartReference and the base class is mainly to avoid code blow up, because if the object is not yet present serious work must be performed in order to request the object from the store and invoke object updates to keep pointers in sync.
Base Class: None
Dependencies: None
History :
+---------+----------------------------------------------+--------+ | Date | Comment | Who | +---------+----------------------------------------------+--------+ | 21/06/99| Initial version. | MF | +---------+----------------------------------------------+--------+
Author: M.Frank Version: 1.0
Definition at line 57 of file SmartRefBase.h.
anonymous enum |
const ContainedObject * SmartRefBase::accessData | ( | const ContainedObject * | typ | ) | const |
Load on demand of ContainedObject like references.
Load on demand: ContainedObject type references.
Definition at line 43 of file SmartRefBase.cpp.
const DataObject * SmartRefBase::accessData | ( | const DataObject * | typ | ) | const |
Load on demand of DataObject like references.
Load on demand: DataObject type references.
Definition at line 52 of file SmartRefBase.cpp.
|
inline |
|
inline |
Equality operator for DataObject like references.
Definition at line 86 of file SmartRefBase.h.
bool SmartRefBase::isEqualEx | ( | const ContainedObject * | pObj, |
const SmartRefBase & | c | ||
) | const |
bool SmartRefBase::isEqualEx | ( | const DataObject * | pObj, |
const SmartRefBase & | c | ||
) | const |
|
inline |
Definition at line 114 of file SmartRefBase.h.
const std::string & SmartRefBase::path | ( | ) | const |
|
inline |
|
inline |
Input streamer for DataObject like references.
Definition at line 96 of file SmartRefBase.h.
void SmartRefBase::set | ( | DataObject * | pObj, |
long | hint_id, | ||
long | link_id | ||
) |
Setup smart reference when reading. Must be allowed from external sources.
Setup smart reference.
Definition at line 36 of file SmartRefBase.cpp.
|
inline |
Definition at line 107 of file SmartRefBase.h.
|
inline |
Definition at line 108 of file SmartRefBase.h.
|
inline |
Output streamer for ContainedObject like references.
Definition at line 92 of file SmartRefBase.h.
|
inline |
Output streamer for DataObject like references.
Definition at line 90 of file SmartRefBase.h.
|
mutable |
Object data: Pointer to the Contained object (if applicable)
Definition at line 66 of file SmartRefBase.h.
|
mutable |
Object data: Pointer to the identifiable object the link originates.
Definition at line 64 of file SmartRefBase.h.
|
mutable |
Object data: ID of the link hint to the identifiable object.
Definition at line 60 of file SmartRefBase.h.
|
mutable |
Object data: ID of the object within the identifiable container (if any)
Definition at line 62 of file SmartRefBase.h.
|
mutable |
Definition at line 68 of file SmartRefBase.h.