Application-wide registry of destructor objects.
More...
#include <TDestructorRegistry.h>
Application-wide registry of destructor objects.
This registry is used to keep track of how to destruct objects that are kept in the transient store, and don't have a ROOT dictionary available for them.
- Author
- Attila Krasznahorkay Attil.nosp@m.a.Kr.nosp@m.aszna.nosp@m.hork.nosp@m.ay@ce.nosp@m.rn.c.nosp@m.h
Definition at line 31 of file TDestructorRegistry.h.
◆ Map_t
◆ TDestructorRegistry() [1/2]
xAOD::TDestructorRegistry::TDestructorRegistry |
( |
| ) |
|
|
private |
◆ TDestructorRegistry() [2/2]
Hide the copy-constructor.
◆ add()
template<class T >
void xAOD::TDestructorRegistry::add |
( |
| ) |
|
Add a new destructor object.
◆ get()
Get the destructor for a given type.
Definition at line 23 of file TDestructorRegistry.cxx.
26 std::shared_lock< std::shared_timed_mutex > lock(
m_mutex );
29 Map_t::const_iterator itr =
m_types.find( &ti );
31 return itr->second.get();
35 ::Error(
"xAOD::TDestructorRegistry::get",
◆ instance()
◆ m_mutex
std::shared_timed_mutex xAOD::TDestructorRegistry::m_mutex |
|
mutableprivate |
Mutex for the destructor map.
This type is used because the registry is filled mostly at the very beginning of a job, and is just read from there on. For the reading the clients don't need exclusive locks on the store.
Definition at line 60 of file TDestructorRegistry.h.
◆ m_types
Map_t xAOD::TDestructorRegistry::m_types |
|
private |
The documentation for this class was generated from the following files: