34 std::pair< bool, ::TClass* >
43 return std::pair< bool, ::TClass* >(
true, itr->second );
45 return std::pair< bool, ::TClass* >(
false,
nullptr );
Define macros for attributes used to control the static checker.
#define ATLAS_THREAD_SAFE
std::shared_timed_mutex m_typeMapMutex
Mutex for the type map.
static THolderCache & instance()
Singleton accessor.
int getRef(void *ptr) const
Get the reference count of an object in memory.
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.
std::shared_timed_mutex m_refMapMutex
Mutex for the reference count map.
THolderCache()
Hide the constructor of the class from the outside.
std::map< const std::type_info *, TClass * > m_typeMap
The type map.
int decRef(void *ptr)
Decrease the reference count of an object in memory.
std::map< void *, int > m_refMap
The reference count map.
int incRef(void *ptr)
Increment the reference count of an object in memory.
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string
std::shared_lock< std::shared_timed_mutex > shared_lock_t
Helper type definition.
std::unique_lock< std::shared_timed_mutex > unique_lock_t
Helper type definition.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.