![]() |
The Gaudi Framework
v28r0
|
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 (std::string path, RegistryEntry *parent=nullptr) | |
Standard Constructor. More... | |
~RegistryEntry () override | |
Standard Destructor. More... | |
unsigned long | release () override |
IInterface implementation: Reference the object. More... | |
unsigned long | addRef () override |
IInterface implementation: Dereference the object. More... | |
const std::string & | name () const override |
Retrieve name of the entry. More... | |
const std::string & | identifier () const override |
Full identifier (or key) More... | |
IDataProviderSvc * | dataSvc () const override |
Retrieve pointer to Transient Store. More... | |
DataObject * | object () const override |
Retrive object behind the link. More... | |
IOpaqueAddress * | address () const override |
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) override |
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 ()=default |
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 (boost::string_ref 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_create (std::string name) |
Internal method to create entries. More... | |
long | i_add (RegistryEntry *entry) |
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 (boost::string_ref 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 = 0 |
Reference counter. More... | |
bool | m_isSoft = false |
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 = nullptr |
Pointer to parent. More... | |
IOpaqueAddress * | m_pAddress = nullptr |
Pointer to opaque address (load info) More... | |
DataObject * | m_pObject = nullptr |
Pointer to object. More... | |
IDataProviderSvc * | m_pDataProviderSvc = nullptr |
Pointer to hosting transient store. More... | |
Store | m_store |
Store of leaves. More... | |
Friends | |
class | ::DataSvc |
class | ::TsDataSvc |
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 36 of file RegistryEntry.h.
typedef Store::const_iterator DataSvcHelpers::RegistryEntry::Iterator |
Iterator definition.
Definition at line 45 of file RegistryEntry.h.
|
private |
Definition of datastore type.
Definition at line 39 of file RegistryEntry.h.
DataSvcHelpers::RegistryEntry::RegistryEntry | ( | std::string | path, |
RegistryEntry * | parent = nullptr |
||
) |
Standard Constructor.
Definition at line 44 of file RegistryEntry.cpp.
|
override |
Standard Destructor.
Standard destructor.
Definition at line 56 of file RegistryEntry.cpp.
|
virtual |
Add entry to data store.
Add entry to the current data store item.
Reimplemented in Hive::HiveEventRegistryEntry.
Definition at line 197 of file RegistryEntry.cpp.
|
virtual |
Add entry to data store.
Add entry to the current data store item.
Reimplemented in Hive::HiveEventRegistryEntry.
Definition at line 206 of file RegistryEntry.cpp.
|
virtual |
Add object to the container.
Reimplemented in Hive::HiveEventRegistryEntry.
Definition at line 169 of file RegistryEntry.cpp.
|
inlineoverridevirtual |
IInterface implementation: Dereference the object.
Implements IRegistry.
Definition at line 118 of file RegistryEntry.h.
|
inlineoverridevirtual |
Retrieve opaque storage address.
Implements IRegistry.
Definition at line 138 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 303 of file RegistryEntry.cpp.
|
inlinevirtual |
Return starting point for container iteration.
Definition at line 162 of file RegistryEntry.h.
|
inlineoverridevirtual |
Retrieve pointer to Transient Store.
Implements IRegistry.
Definition at line 130 of file RegistryEntry.h.
|
virtual |
Delete all contained elements.
Delete recursively all elements pending from the current store item.
Definition at line 215 of file RegistryEntry.cpp.
|
inlinevirtual |
Try to find an object identified by its pointer.
Definition at line 170 of file RegistryEntry.h.
|
inlinevirtual |
Try to find an object identified by its relative name to the directory.
Definition at line 174 of file RegistryEntry.h.
|
inlineprivate |
Find identified leaf in this registry node.
Definition at line 95 of file RegistryEntry.h.
|
inlineprivate |
Find identified leaf in this registry node.
Definition at line 99 of file RegistryEntry.h.
|
private |
Internal method to add entries.
Add object to the container.
Definition at line 175 of file RegistryEntry.cpp.
|
private |
Internal method to create entries.
Internal method to add entries.
Definition at line 159 of file RegistryEntry.cpp.
Internal method to retrieve data directory.
Try to find an object identified by its pointer.
Definition at line 228 of file RegistryEntry.cpp.
|
private |
Internal method to retrieve data directory.
Find identified leaf in this registry node.
Definition at line 234 of file RegistryEntry.cpp.
|
private |
Internal method to locate object entry.
Find identified leaf in this registry node.
Definition at line 263 of file RegistryEntry.cpp.
|
inlineoverridevirtual |
Full identifier (or key)
Implements IRegistry.
Definition at line 126 of file RegistryEntry.h.
|
inlinevirtual |
Simple check if the Container is empty.
Definition at line 158 of file RegistryEntry.h.
|
inlinevirtual |
Is the link soft or hard.
Definition at line 146 of file RegistryEntry.h.
|
inline |
|
private |
Initialize link as hard link.
Create hard link.
Definition at line 98 of file RegistryEntry.cpp.
|
private |
Initialize link as hard link.
Create hard link.
Definition at line 106 of file RegistryEntry.cpp.
|
private |
Initialize link as soft link.
Create soft link.
Definition at line 83 of file RegistryEntry.cpp.
|
private |
Initialize link as soft link.
Create soft link.
Definition at line 92 of file RegistryEntry.cpp.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Retrive object behind the link.
Implements IRegistry.
Definition at line 134 of file RegistryEntry.h.
|
inlinevirtual |
Pointer to parent directory entry.
Definition at line 142 of file RegistryEntry.h.
|
inlineprivatevirtual |
Pointer to parent registry entry.
Definition at line 91 of file RegistryEntry.h.
|
overridevirtual |
IInterface implementation: Reference the object.
Release entry.
Implements IRegistry.
Definition at line 69 of file RegistryEntry.cpp.
|
virtual |
Remove an entry from the store.
Remove entry from data store.
Definition at line 146 of file RegistryEntry.cpp.
|
virtual |
Remove an object from the container.
Definition at line 132 of file RegistryEntry.cpp.
|
overridevirtual |
Set/Update Opaque address.
Update Opaque address of registry entry.
Implements IRegistry.
Definition at line 112 of file RegistryEntry.cpp.
|
inlineprivate |
Set the transient data store.
Definition at line 87 of file RegistryEntry.h.
void DataSvcHelpers::RegistryEntry::setObject | ( | DataObject * | obj | ) |
Set/Update object address.
Set object pointer of data store item.
Definition at line 122 of file RegistryEntry.cpp.
|
private |
Set new parent pointer.
Definition at line 76 of file RegistryEntry.cpp.
|
inlinevirtual |
Return the size of the container(=number of objects)
Definition at line 154 of file RegistryEntry.h.
|
virtual |
traverse data tree
Definition at line 285 of file RegistryEntry.cpp.
Definition at line 41 of file RegistryEntry.h.
Definition at line 43 of file RegistryEntry.h.
|
private |
String containing full path of the object (volatile)
Definition at line 52 of file RegistryEntry.h.
|
private |
Is the link soft or hard?
Definition at line 50 of file RegistryEntry.h.
|
private |
Pointer to opaque address (load info)
Definition at line 58 of file RegistryEntry.h.
|
private |
Path name.
Definition at line 54 of file RegistryEntry.h.
|
private |
Pointer to hosting transient store.
Definition at line 62 of file RegistryEntry.h.
|
private |
Pointer to object.
Definition at line 60 of file RegistryEntry.h.
|
private |
Pointer to parent.
Definition at line 56 of file RegistryEntry.h.
|
private |
Reference counter.
Definition at line 48 of file RegistryEntry.h.
|
private |
Store of leaves.
Definition at line 64 of file RegistryEntry.h.