|
ATLAS Offline Software
|
Go to the documentation of this file.
34 std::pair< bool, ::TClass* >
43 return std::pair< bool, ::TClass* >(
true, itr->second );
45 return std::pair< bool, ::TClass* >(
false,
nullptr );
106 : m_typeMap(), m_refMap(), m_typeMapMutex(), m_refMapMutex() {
int getRef(void *ptr) const
Get the reference count of an object in memory.
std::map< void *, int > m_refMap
The reference count map.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
void addClass(const std::type_info &ti, ::TClass *cl)
Add the dictionary for a given type.
std::pair< bool, ::TClass * > getClass(const std::type_info &ti) const
Get the dictionary for a given type info.
Singleton, thread-safe THolder cache.
std::map< const std::type_info *, TClass * > m_typeMap
The type map.
std::shared_timed_mutex m_typeMapMutex
Mutex for the type map.
static THolderCache & instance()
Singleton accessor.
int incRef(void *ptr)
Increment the reference count of an object in memory.
THolderCache()
Hide the constructor of the class from the outside.
std::unique_lock< std::shared_timed_mutex > unique_lock_t
Helper type definition.
#define ATLAS_THREAD_SAFE
Define macros for attributes used to control the static checker.
int decRef(void *ptr)
Decrease the reference count of an object in memory.
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
std::shared_timed_mutex m_refMapMutex
Mutex for the reference count map.
std::shared_lock< std::shared_timed_mutex > shared_lock_t
Helper type definition.