The Gaudi Framework
v25r5
|
Definition of an entry in the transient data store. More...
#include <GaudiKernel/RegistryEntry.h>
Public Types | |
typedef Store::const_iterator | Iterator |
Iterator definition. More... | |
![]() | |
typedef std::string | name_type |
Type definitions Name type. More... | |
typedef std::string | id_type |
Identifier Key type. More... | |
Public Member Functions | |
RegistryEntry (const std::string &path, RegistryEntry *parent=0) | |
Standard Constructor. More... | |
virtual | ~RegistryEntry () |
Standard Destructor. More... | |
virtual unsigned long | release () |
IInterface implementation: Reference the object. More... | |
virtual unsigned long | addRef () |
IInterface implementation: Dereference the object. More... | |
const std::string & | name () const |
Retrieve name of the entry. More... | |
virtual const std::string & | identifier () const |
Full identifier (or key) More... | |
virtual IDataProviderSvc * | dataSvc () const |
Retrieve pointer to Transient Store. More... | |
virtual DataObject * | object () const |
Retrive object behind the link. More... | |
virtual IOpaqueAddress * | address () const |
Retrieve opaque storage address. More... | |
virtual IRegistry * | parent () const |
Pointer to parent directory entry. More... | |
virtual bool | isSoft () const |
Is the link soft or hard. More... | |
const Store & | leaves () const |
Access the leaves of the object. More... | |
virtual int | size () const |
Return the size of the container(=number of objects) More... | |
virtual bool | isEmpty () const |
Simple check if the Container is empty. More... | |
virtual Iterator | begin () const |
Return starting point for container iteration. More... | |
virtual Iterator | end () const |
Return end elemtn if the container. More... | |
virtual IRegistry * | find (const IRegistry *obj) const |
Try to find an object identified by its pointer. More... | |
virtual IRegistry * | find (const std::string &path) const |
Try to find an object identified by its relative name to the directory. More... | |
void | setAddress (IOpaqueAddress *pAddress) |
Set/Update Opaque address. More... | |
void | setObject (DataObject *obj) |
Set/Update object address. More... | |
virtual long | add (const std::string &name, DataObject *pObject, bool is_soft=false) |
Add entry to data store. More... | |
virtual long | add (const std::string &name, IOpaqueAddress *pAddress, bool is_soft=false) |
Add entry to data store. More... | |
virtual long | remove (const std::string &name) |
Remove an entry from the store. More... | |
virtual long | add (IRegistry *obj) |
Add object to the container. More... | |
virtual long | remove (IRegistry *obj) |
Remove an object from the container. More... | |
virtual long | deleteElements () |
Delete all contained elements. More... | |
virtual long | traverseTree (IDataStoreAgent *pAgent, int level=0) |
traverse data tree More... | |
![]() | |
virtual | ~IRegistry () |
destructor More... | |
Private Types | |
typedef std::vector< IRegistry * > | Store |
Definition of datastore type. More... | |
Private Member Functions | |
void | assemblePath (std::string &buffer) const |
The following entries serve two aspects: 1) They are faster for recursive calls, because they are non-virtual 2) They can be re-used for the non-const entry points using a const_cast of the result. More... | |
IRegistry * | i_find (const IRegistry *pDirectory) const |
Internal method to retrieve data directory. More... | |
RegistryEntry * | i_find (const std::string &path) const |
Internal method to retrieve data directory. More... | |
RegistryEntry * | i_find (const DataObject *pObject) const |
Internal method to locate object entry. More... | |
RegistryEntry * | i_add (const std::string &name) |
Internal method to add entries. More... | |
void | setParent (RegistryEntry *pParent) |
Set new parent pointer. More... | |
void | setDataSvc (IDataProviderSvc *s) |
Set the transient data store. More... | |
virtual RegistryEntry * | parentEntry () |
Pointer to parent registry entry. More... | |
RegistryEntry * | findLeaf (const std::string &path) const |
Find identified leaf in this registry node. More... | |
RegistryEntry * | findLeaf (const DataObject *key) const |
Find identified leaf in this registry node. More... | |
void | makeHard (DataObject *pObject) |
Initialize link as hard link. More... | |
void | makeHard (IOpaqueAddress *pAddress) |
Initialize link as hard link. More... | |
void | makeSoft (DataObject *pObject) |
Initialize link as soft link. More... | |
void | makeSoft (IOpaqueAddress *pAddress) |
Initialize link as soft link. More... | |
Private Attributes | |
unsigned long | m_refCount |
Reference counter. More... | |
bool | m_isSoft |
Is the link soft or hard? More... | |
std::string | m_fullpath |
String containing full path of the object (volatile) More... | |
std::string | m_path |
Path name. More... | |
RegistryEntry * | m_pParent |
Pointer to parent. More... | |
IOpaqueAddress * | m_pAddress |
Pointer to opaque address (load info) More... | |
DataObject * | m_pObject |
Pointer to object. More... | |
IDataProviderSvc * | m_pDataProviderSvc |
Pointer to hosting transient store. More... | |
Store | m_store |
Store of leaves. More... | |
Friends | |
class | ::DataSvc |
Definition of an entry in the transient data store.
The RegistryEntry represents an entry of the transient data store. The object holds the recipe how to retrieve objects from the persistent world (member IOpaqueAddress) as well as the backward link to the parent entry and the leaves.
Definition at line 34 of file RegistryEntry.h.
typedef Store::const_iterator DataSvcHelpers::RegistryEntry::Iterator |
Iterator definition.
Definition at line 41 of file RegistryEntry.h.
|
private |
Definition of datastore type.
Definition at line 37 of file RegistryEntry.h.
DataSvcHelpers::RegistryEntry::RegistryEntry | ( | const std::string & | path, |
RegistryEntry * | parent = 0 |
||
) |
Standard Constructor.
Definition at line 45 of file RegistryEntry.cpp.
|
virtual |
Standard Destructor.
Standard destructor.
Definition at line 66 of file RegistryEntry.cpp.
|
virtual |
Add entry to data store.
Add entry to the current data store item.
Definition at line 211 of file RegistryEntry.cpp.
|
virtual |
Add entry to data store.
Add entry to the current data store item.
Definition at line 222 of file RegistryEntry.cpp.
|
virtual |
Add object to the container.
Definition at line 195 of file RegistryEntry.cpp.
|
inlinevirtual |
IInterface implementation: Dereference the object.
Implements IRegistry.
Definition at line 112 of file RegistryEntry.h.
|
inlinevirtual |
Retrieve opaque storage address.
Implements IRegistry.
Definition at line 132 of file RegistryEntry.h.
|
private |
The following entries serve two aspects: 1) They are faster for recursive calls, because they are non-virtual 2) They can be re-used for the non-const entry points using a const_cast of the result.
Recursive helper to assemble the full path name of the entry
Definition at line 339 of file RegistryEntry.cpp.
|
inlinevirtual |
|
inlinevirtual |
Retrieve pointer to Transient Store.
Implements IRegistry.
Definition at line 124 of file RegistryEntry.h.
|
virtual |
Delete all contained elements.
Delete recursively all elements pending from the current store item.
Definition at line 233 of file RegistryEntry.cpp.
|
inlinevirtual |
Try to find an object identified by its pointer.
Definition at line 164 of file RegistryEntry.h.
|
inlinevirtual |
Try to find an object identified by its relative name to the directory.
Definition at line 168 of file RegistryEntry.h.
|
inlineprivate |
Find identified leaf in this registry node.
Definition at line 89 of file RegistryEntry.h.
|
inlineprivate |
Find identified leaf in this registry node.
Definition at line 93 of file RegistryEntry.h.
|
private |
Internal method to add entries.
Definition at line 179 of file RegistryEntry.cpp.
Internal method to retrieve data directory.
Try to find an object identified by its pointer.
Definition at line 246 of file RegistryEntry.cpp.
|
private |
Internal method to retrieve data directory.
Find identified leaf in this registry node.
Definition at line 252 of file RegistryEntry.cpp.
|
private |
Internal method to locate object entry.
Find identified leaf in this registry node.
Definition at line 299 of file RegistryEntry.cpp.
|
inlinevirtual |
Full identifier (or key)
Implements IRegistry.
Definition at line 120 of file RegistryEntry.h.
|
inlinevirtual |
|
inlinevirtual |
Is the link soft or hard.
Definition at line 140 of file RegistryEntry.h.
|
inline |
|
private |
Initialize link as hard link.
Create hard link.
Definition at line 110 of file RegistryEntry.cpp.
|
private |
Initialize link as hard link.
Create hard link.
Definition at line 122 of file RegistryEntry.cpp.
|
private |
Initialize link as soft link.
Create soft link.
Definition at line 95 of file RegistryEntry.cpp.
|
private |
Initialize link as soft link.
Create soft link.
Definition at line 104 of file RegistryEntry.cpp.
|
inlinevirtual |
|
inlinevirtual |
Retrive object behind the link.
Implements IRegistry.
Definition at line 128 of file RegistryEntry.h.
|
inlinevirtual |
Pointer to parent directory entry.
Definition at line 136 of file RegistryEntry.h.
|
inlineprivatevirtual |
Pointer to parent registry entry.
Definition at line 85 of file RegistryEntry.h.
|
virtual |
IInterface implementation: Reference the object.
Release entry.
Implements IRegistry.
Definition at line 79 of file RegistryEntry.cpp.
|
virtual |
Remove an entry from the store.
Remove entry from data store.
Definition at line 162 of file RegistryEntry.cpp.
|
virtual |
Remove an object from the container.
Definition at line 148 of file RegistryEntry.cpp.
|
virtual |
Set/Update Opaque address.
Update Opaque address of registry entry.
Implements IRegistry.
Definition at line 128 of file RegistryEntry.cpp.
|
inlineprivate |
Set the transient data store.
Definition at line 81 of file RegistryEntry.h.
void DataSvcHelpers::RegistryEntry::setObject | ( | DataObject * | obj | ) |
Set/Update object address.
Set object pointer of data store item.
Definition at line 138 of file RegistryEntry.cpp.
|
private |
Set new parent pointer.
Definition at line 88 of file RegistryEntry.cpp.
|
inlinevirtual |
Return the size of the container(=number of objects)
Definition at line 148 of file RegistryEntry.h.
|
virtual |
traverse data tree
Definition at line 321 of file RegistryEntry.cpp.
Definition at line 39 of file RegistryEntry.h.
|
private |
String containing full path of the object (volatile)
Definition at line 48 of file RegistryEntry.h.
|
private |
Is the link soft or hard?
Definition at line 46 of file RegistryEntry.h.
|
private |
Pointer to opaque address (load info)
Definition at line 54 of file RegistryEntry.h.
|
private |
Path name.
Definition at line 50 of file RegistryEntry.h.
|
private |
Pointer to hosting transient store.
Definition at line 58 of file RegistryEntry.h.
|
private |
Pointer to object.
Definition at line 56 of file RegistryEntry.h.
|
private |
Pointer to parent.
Definition at line 52 of file RegistryEntry.h.
|
private |
Reference counter.
Definition at line 44 of file RegistryEntry.h.
|
private |
Store of leaves.
Definition at line 60 of file RegistryEntry.h.