ATLAS Offline Software
|
Very simple pass-through implementation of IProxyDict. More...
#include <DebugView.h>
Public Types | |
typedef SG::sgkey_t | sgkey_t |
Type of the keys. More... | |
Public Member Functions | |
DeclareInterfaceID (DebugView, 2, 0) | |
DebugView ()=delete | |
DebugView (std::string const &Name, bool AllowFallThrough=true, std::string const &storeName="StoreGateSvc") | |
virtual | ~DebugView () |
virtual void | linkParent (const IProxyDict *parent) |
virtual SG::DataProxy * | proxy (const CLID &id, const std::string &key) const |
virtual SG::DataProxy * | findProxy (const CLID &id, const std::string &key, const bool allowFallThrough) const |
virtual SG::DataProxy * | proxy (const void *const pTransient) const |
Get a proxy referencing a given transient object. More... | |
virtual SG::DataProxy * | recordObject (SG::DataObjectSharedPtr< DataObject > obj, const std::string &key, bool allowMods, bool returnExisting) |
DeclareInterfaceID (SimpleView, 2, 0) | |
DeclareInterfaceID (IProxyDict, 2, 0) | |
DeclareInterfaceID (INamedInterface, 2, 0) | |
std::string | viewKey (const std::string &key) const |
Construct a key as used in the parent store. More... | |
virtual const std::set< const SG::View * > & | getParentLinks () const |
returns the links to the previously used views More... | |
void | setFilter (std::vector< std::string > const &inputFilter) |
Set a filtering rule for anything loaded via fallthrough. More... | |
virtual SG::DataProxy * | deep_proxy (const void *const pTransient) const |
get proxy for a given data object address in memory, but performs a deep search among all possible 'symlinked' containers TEMPORARY: This method is going away. More... | |
virtual SG::DataProxy * | proxy_exact (SG::sgkey_t sgkey) const |
Get proxy given a hashed key+clid. More... | |
virtual std::vector< const SG::DataProxy * > | proxies () const |
Return the list of all current proxies in store. More... | |
virtual StatusCode | addToStore (CLID id, SG::DataProxy *proxy) |
Add a new proxy to the store. More... | |
virtual void | boundHandle (IResetable *handle) |
Tell the store that a handle has been bound to a proxy. More... | |
virtual void | unboundHandle (IResetable *handle) |
Tell the store that a handle has been unbound from a proxy. More... | |
virtual bool | tryELRemap (sgkey_t sgkey_in, size_t index_in, sgkey_t &sgkey_out, size_t &index_out) |
Test to see if the target of an ElementLink has moved. More... | |
virtual unsigned long | addRef () |
virtual unsigned long | release () |
virtual StatusCode | queryInterface (const InterfaceID &ti, void **pp) |
virtual const std::string & | name () const |
virtual IStringPool::sgkey_t | stringToKey (const std::string &str, CLID clid) |
Find the key for a string/CLID pair. More... | |
virtual const std::string * | keyToString (IStringPool::sgkey_t key) const |
Find the string corresponding to a given key. More... | |
virtual const std::string * | keyToString (IStringPool::sgkey_t key, CLID &clid) const |
Find the string and CLID corresponding to a given key. More... | |
virtual void | registerKey (IStringPool::sgkey_t key, const std::string &str, CLID clid) |
Remember an additional mapping from key to string/CLID. More... | |
std::string | dump (const std::string &indent="") const |
void | setROI (const ElementLink< TrigRoiDescriptorCollection > &roi) |
const ElementLink< TrigRoiDescriptorCollection > & | getROI () const |
virtual StatusCode | createObj (IConverter *cvt, IOpaqueAddress *addr, DataObject *&refpObject) |
Call converter to create an object, possibly with locking. More... | |
virtual IProxyDict * | hiveProxyDict () override |
Return the current event-slot-specific store. More... | |
virtual SG::SourceID | sourceID (const std::string &key="EventSelector") const |
Return the metadata source ID for the current event slot. More... | |
Protected Attributes | |
tbb::concurrent_unordered_set< std::string > m_fallList | ATLAS_THREAD_SAFE |
ServiceHandle< StoreGateSvc > | m_store |
ElementLink< TrigRoiDescriptorCollection > | m_roi |
std::string | m_name |
std::set< const SG::View * > | m_parents |
std::vector< std::string > | m_fallFilter |
bool | m_allowFallThrough |
Private Member Functions | |
bool | msgLvl (const MSG::Level lvl) const |
Test the output level. More... | |
MsgStream & | msg () const |
The standard message stream. More... | |
MsgStream & | msg (const MSG::Level lvl) const |
The standard message stream. More... | |
void | setLevel (MSG::Level lvl) |
Change the current logging level. More... | |
void | initMessaging () const |
Initialize our message level and MessageSvc. More... | |
Private Attributes | |
std::string | m_nm |
Message source name. More... | |
boost::thread_specific_ptr< MsgStream > | m_msg_tls |
MsgStream instance (a std::cout like with print-out levels) More... | |
std::atomic< IMessageSvc * > | m_imsg { nullptr } |
MessageSvc pointer. More... | |
std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
Current logging level. More... | |
Very simple pass-through implementation of IProxyDict.
Most of the methods are copypasta and don't do anything Adds extra debugging information to SimpleView
Definition at line 28 of file DebugView.h.
|
inherited |
Type of the keys.
Definition at line 34 of file IStringPool.h.
|
delete |
DebugView::DebugView | ( | std::string const & | Name, |
bool | AllowFallThrough = true , |
||
std::string const & | storeName = "StoreGateSvc" |
||
) |
Definition at line 9 of file DebugView.cxx.
|
virtual |
Definition at line 15 of file DebugView.cxx.
|
virtualinherited |
Definition at line 204 of file SimpleView.cxx.
|
virtualinherited |
Add a new proxy to the store.
id | CLID as which the proxy should be added. |
proxy | The proxy to add. |
Simple addition of a proxy to the store. The key is taken as the primary key of the proxy. Does not handle things like overwrite, history, symlinks, etc. Should return failure if there is already an entry for this clid/key.
Implements IProxyDict.
Definition at line 146 of file SimpleView.cxx.
|
virtualinherited |
Tell the store that a handle has been bound to a proxy.
handle | The handle that was bound. The default implementation does nothing. |
Reimplemented from IProxyDict.
Definition at line 189 of file SimpleView.cxx.
|
virtualinherited |
Call converter to create an object, possibly with locking.
cvt | The converter to call. |
addr | Opaque address information for the object to create. |
refpObject | Reference to location of the pointer of the created object. |
This calls the createObj
method on cvt
to create the referenced transient object.
This will also lock the store, if that is required.
The default implementation just forwards the method call, with no locking.
Reimplemented in StoreGateSvc, and SGImplSvc.
Definition at line 70 of file IProxyDict.cxx.
DebugView::DeclareInterfaceID | ( | DebugView | , |
2 | , | ||
0 | |||
) |
|
inherited |
|
inherited |
|
inherited |
|
inlinevirtualinherited |
get proxy for a given data object address in memory, but performs a deep search among all possible 'symlinked' containers TEMPORARY: This method is going away.
Definition at line 72 of file SimpleView.h.
|
inherited |
Definition at line 252 of file SimpleView.cxx.
|
virtual |
Reimplemented from SimpleView.
Definition at line 50 of file DebugView.cxx.
|
inlinevirtualinherited |
|
inherited |
Definition at line 248 of file SimpleView.cxx.
|
overridevirtualinherited |
Return the current event-slot-specific store.
The default version just returns this.
Implements IHiveStore.
Reimplemented in StoreGateSvc, and SGImplSvc.
Definition at line 83 of file IProxyDict.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
virtualinherited |
Find the string corresponding to a given key.
key | The key to look up. |
stringToKey()
or registerKey()
. Implements IStringPool.
Definition at line 229 of file SimpleView.cxx.
|
virtualinherited |
Find the string and CLID corresponding to a given key.
key | The key to look up. |
clid[out] | The found CLID. |
stringToKey()
or registerKey()
. Implements IStringPool.
Definition at line 234 of file SimpleView.cxx.
|
virtual |
Reimplemented from SimpleView.
Definition at line 24 of file DebugView.cxx.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
lvl | The message level to test against |
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
|
virtualinherited |
Definition at line 219 of file SimpleView.cxx.
|
virtualinherited |
Return the list of all current proxies in store.
Implements IProxyDict.
Definition at line 130 of file SimpleView.cxx.
|
virtual |
Reimplemented from SimpleView.
Definition at line 45 of file DebugView.cxx.
|
virtual |
Get a proxy referencing a given transient object.
pTransient | The object to find. |
Returns 0 to flag failure
Reimplemented from SimpleView.
Definition at line 127 of file DebugView.cxx.
|
virtualinherited |
Get proxy given a hashed key+clid.
sgkey | Hashed key to look up. |
Find an exact match; no handling of aliases, etc. Returns 0 to flag failure.
Implements IProxyDict.
Definition at line 51 of file SimpleView.cxx.
|
virtualinherited |
Definition at line 214 of file SimpleView.cxx.
|
virtual |
Reimplemented from SimpleView.
Definition at line 133 of file DebugView.cxx.
|
virtualinherited |
Remember an additional mapping from key to string/CLID.
key | The key to enter. |
str | The string to enter. |
clid | The CLID associated with the string. |
key
already corresponds to a different string.This registers an additional mapping from a key to a string; it can be found later through lookup()
on the string. Logs an error if key
already corresponds to a different string.
Implements IStringPool.
Definition at line 239 of file SimpleView.cxx.
|
virtualinherited |
Definition at line 209 of file SimpleView.cxx.
|
inlineinherited |
Set a filtering rule for anything loaded via fallthrough.
Definition at line 64 of file SimpleView.h.
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
|
inherited |
Definition at line 244 of file SimpleView.cxx.
|
virtualinherited |
Return the metadata source ID for the current event slot.
key | SG key of the DataHeader to query. Returns an empty string if no source has been set. |
The default version always returns an empty string.
Reimplemented in StoreGateSvc, and SGImplSvc.
Definition at line 97 of file IProxyDict.cxx.
|
virtualinherited |
Find the key for a string/CLID pair.
str | The string to look up. |
clid | The CLID associated with the string. |
Implements IStringPool.
Definition at line 225 of file SimpleView.cxx.
|
virtualinherited |
Test to see if the target of an ElementLink has moved.
sgkey_in | Original hashed key of the EL. |
index_in | Original index of the EL. |
sgkey_out[out] | New hashed key for the EL. |
index_out[out] | New index for the EL. |
The default implementation here always returns false.
Reimplemented from IProxyDict.
Definition at line 162 of file SimpleView.cxx.
|
virtualinherited |
Tell the store that a handle has been unbound from a proxy.
handle | The handle that was unbound. The default implementation does nothing. |
Reimplemented from IProxyDict.
Definition at line 199 of file SimpleView.cxx.
|
inherited |
Construct a key as used in the parent store.
key The key as used in the view.
Definition at line 27 of file SimpleView.cxx.
|
mutableprotected |
Definition at line 66 of file DebugView.h.
|
protectedinherited |
Definition at line 201 of file SimpleView.h.
|
protectedinherited |
Definition at line 200 of file SimpleView.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
protectedinherited |
Definition at line 198 of file SimpleView.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
Definition at line 199 of file SimpleView.h.
|
protectedinherited |
Definition at line 197 of file SimpleView.h.
|
protectedinherited |
Definition at line 194 of file SimpleView.h.