29 template <
typename T>
using Atomic_t = std::atomic<T>;
79 {
if(
this!=&iip) {TVirtualIsAProxy::operator=(iip);
fClass=iip.
fClass;}
91 return obj==0 ?
fClass : ((
const T*)obj)->IsA();
TClass instances represent classes, structs and namespaces in the ROOT type system.
virtual TClass * operator()(const void *obj)
virtual ~TInstrumentedIsAProxy()
TInstrumentedIsAProxy(const TInstrumentedIsAProxy &iip)
virtual void SetClass(TClass *cl)
TInstrumentedIsAProxy(TClass *cl)
TInstrumentedIsAProxy & operator=(const TInstrumentedIsAProxy &iip)
TIsAProxy implementation class.
Atomic_t< UInt_t > fSubTypesReaders
void * CacheSubType(const std::type_info *, TClass *)
Record the TClass found for a std::type_info, so that we can retrieved it faster.
virtual void SetClass(TClass *cl)
Set class pointer This method is not thread safe.
virtual ~TIsAProxy()
Standard destructor.
std::atomic< T > Atomic_t
TIsAProxy & operator=(const TIsAProxy &)=delete
Atomic_t< UChar_t > fNextLastSlot
virtual TClass * operator()(const void *obj)
IsA callback.
const std::type_info * fType
Atomic_t< Bool_t > fSubTypesWriteLockTaken
Atomic_t< void * > fLasts[fgMaxLastSlot]
void * FindSubType(const std::type_info *) const
See if we have already cached the TClass that correspond to this std::type_info.
static constexpr UInt_t fgMaxLastSlot
TIsAProxy(const TIsAProxy &)=delete