|
ATLAS Offline Software
|
Go to the documentation of this file.
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",
42 : m_types(), m_mutex() {
std::string normalizedTypeinfoName(const std::type_info &info)
Convert a type_info to a normalized string representation (matching the names used in the root dictio...
TDestructorRegistry()
Hide the constructor of the type.
Map_t m_types
Internal map of known destructor objects.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Base class for the templated destructor types.
Application-wide registry of destructor objects.
static TDestructorRegistry & instance()
Function accessing the singleton instance of this type.
Convert a type_info to a normalized string representation (matching the names used in the root dictio...
std::shared_timed_mutex m_mutex
Mutex for the destructor map.
#define ATLAS_THREAD_SAFE
Define macros for attributes used to control the static checker.
const TVirtualDestructor * get(const std::type_info &ti) const
Get the destructor for a given type.